《Learning Pyth0n 2nd Ed》中的列表:
Escape<o:p></o:p> | Meaning<o:p></o:p> |
\newline<o:p></o:p> | Ignored (continuation)<o:p></o:p> |
\\<o:p></o:p> | Backslash (keeps a \)<o:p></o:p> |
\'<o:p></o:p> | Single quote (keeps `)<o:p></o:p> |
\"<o:p></o:p> | Double quote (keeps ")<o:p></o:p> |
\a<o:p></o:p> | Bell<o:p></o:p> |
\b<o:p></o:p> | Backspace<o:p></o:p> |
\f<o:p></o:p> | Formfeed<o:p></o:p> |
\n<o:p></o:p> | Newline (linefeed)<o:p></o:p> |
\r<o:p></o:p> | Carriage return<o:p></o:p> |
\t<o:p></o:p> | Horizontal tab<o:p></o:p> |
\v<o:p></o:p> | Vertical tab<o:p></o:p> |
\N{id}<o:p></o:p> | Unicode dbase id<o:p></o:p> |
\uhhhh<o:p></o:p> | Unicode 16-bit hex<o:p></o:p> |
\Uhhhh...<o:p></o:p> | Unicode 32-bit hex[1]<o:p></o:p> |
\xhh<o:p></o:p> | Hex digits value hh<o:p></o:p> |
\ooo<o:p></o:p> | Octal digits value<o:p></o:p> |
\0<o:p></o:p> | Null (doesn't end string)<o:p></o:p> |
\other<o:p></o:p> | Not an escape (kept)<o:p></o:p> |