How to write raw strings to Python

Sam Chats blahBlah at blah.org
Wed Jul 5 10:37:55 EDT 2017


I want to write, say, 'hello\tworld' as-is to a file, but doing f.write('hello\tworld') makes the file
look like:
hello	world

How can I fix this? Thanks in advance.

Sam



More information about the Python-list mailing list