Python 支持的所有转义序列:
\\ | Backslash () 反斜杠
\' | Single quote (‘) 单引号
\" | Double quote (”) 双引号
\a | ASCII Bell (BEL) 响铃符
\b | ASCII Backspace (BS) 退格符
\f | ASCII Formfeed (FF) 进纸符
\n | ASCII Linefeed (LF) 换行符
\N{name} | Unicode 数据库中的字符名,其中 name 就是它的名字(Unicode only) | \r ASCII | Carriage Return (CR) 回车符
\tASCII | Horizontal Tab (TAB) 水平制表符
\uxxxx | 值为 16 位十六进制值 xxxx 的字符(Unicode only)
\Uxxxxxxxx | 值为 32 位十六进制值 xxxx 的字符(Unicode only)
\v | ASCII Vertical Tab (VT) 垂直制表符
\ooo | 值为八进制值 ooo 的字符
\xhh | 值为十六进制数 hh 的字符