Python \ escape-. \n , \t .. , \uhhhh 4- \Uhhhhhhhh 8- .
. String Bytes Literals, escape-.
Python ( repr() ), Python . Python, , .
, Python escape-, . , , , \xhh , , \c ( \n).
, escape- \ooo . . \xhh :
>>> '\20'
'\x10'
\t :
>>> print('\test')
est
, t; est , .
\ , :
>>> '\\test\\1\\2\\3'
'\\test\\1\\2\\3'
>>> print('\\test\\1\\2\\3')
\test\1\2\3
>>> len('\\test\\1\\2\\3')
11
, ! , Python, . print(), , ( ) , , , , 11 , 15.
. , , , . . - , ; :
>>> r'\test\1\2\3'
'\\test\\1\\2\\3'
, : , Windows, ; API- :
>>> 'C:/This/is/a/valid/path'
'C:/This/is/a/valid/path'