+ 1
Do you know where to find a comprehensive list of escape characters using the backward slash?
2 Antworten
+ 1
https://docs.python.org/3.2/reference/lexical_analysis.html#index-15
WEBSITE CONTENTS:
\newline
Backslash and newline ignored
\\
Backslash (\)
\'
Single quote (')
\"
Double quote (")
\a
ASCII Bell (BEL)
\b
ASCII Backspace (BS)
\f
ASCII Formfeed (FF)
\n
ASCII Linefeed (LF)
\r
ASCII Carriage Return (CR)
\t
ASCII Horizontal Tab (TAB)
\v
ASCII Vertical Tab (VT)
\ooo
Character with octal value ooo
\xhh
Character with hex value hh
ONLY RECOGNIZED IN STRINGS:
\N{name}
Character named name in the Unicode database
\uxxxxCharacter with 16-bit hex valuexxxx
\UxxxxxxxxCharacter with 32-bit hex valuexxxxxxxx
+ 2
thanks God! (literally)