String Literal, :
(\) , , , , . r' or R '; escape- .
\t , , ASCII (TAB).
Python, , ( r "") :
>>> list(r" Hello \t World.")
[' ', ' ', ' ', ' ', 'H', 'e', 'l', 'l', 'o', ' ', '\\', 't', ' ', 'W', 'o', 'r', 'l', 'd', '.']
\\ , Python \.
Python '\' , \' ('). , '\', , Python :
>>> '\'
File "<stdin>", line 1
'\'
^
SyntaxError: EOL while scanning string literal
( - ), , "unicode-escape":
>>> my_str = " Hello \t World."
>>> unicode_escaped_string = my_str.encode('unicode-escape')
>>> unicode_escaped_string
b' Hello \\t World.'
, chr, . :
>>> list(map(chr, unicode_escaped_string))
[' ', ' ', ' ', ' ', 'H', 'e', 'l', 'l', 'o', ' ', '\\', 't', ' ', 'W', 'o', 'r', 'l', 'd', '.']