How to write raw strings to Python

Thomas Jollans tjol at tjol.eu
Wed Jul 5 11:20:06 EDT 2017


On 2017年07月05日 17:09, Sam Chats wrote:
>> Thanks, but I've tried something similar. Actually, I want to convert a string which I receive from a NNTP server to a raw string. So if I try something like:
> raw = r"%s" % string_from_server
>
You may me looking for repr()
<https://docs.python.org/3/library/functions.html#repr>
-- Thomas


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /