programming/python/lp3thw/Exercise10/Escape-Sequences.txt

16 lines
672 B
Plaintext
Raw Normal View History

2021-04-19 17:06:12 +00:00
Escape SequencesThis is all of the escape sequences Python supports. You may not use many of these, but memorize
their format and what they do anyway. Try them out in some strings to see if you can make them work.Escape What it does.
\\Backslash (\)
\'Single-quote (')
\"Double-quote (")
\aASCII bell (BEL)
\bASCII backspace (BS)
\fASCII formfeed (FF)
\nASCII linefeed (LF)
\N{name}Character named name in the Unicode database (Unicode only)\rCarriage return (CR)
\tHorizontal tab (TAB)
\uxxxxCharacter with 16-bit hex value xxxx
\UxxxxxxxxCharacter with 32-bit hex value xxxxxxxx
\vASCII vertical tab (VT)
\000Character with octal value000
\xhhCharacter with hex value hh