Skip to content

Instantly share code, notes, and snippets.

@zzak
Created July 18, 2010 01:56
Show Gist options
  • Save zzak/480039 to your computer and use it in GitHub Desktop.
Save zzak/480039 to your computer and use it in GitHub Desktop.
print '''
Python Escape Sequences
\\newline ignored
\\\ backslash
\\' single quote
\\" double quote
\\a ascii bell
\\b ascii backspace
\\f ascii form feed
\\n ascii line feed
\\N{name} named character in unicode database (unicode strings only)
\\r ascii carriage return
\\t ascii horizontal tab
\\uxxxx character with 16bit hex value xxxx (unicode only)
\\Uxxxxxxxx character with 32bit hex value xxxx (unicode only)
\\v ascii vertical tab
\\ooo character with octal value oo
\\xhh character with hex value hh
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment