《Learning Pyth0n 2nd Ed》中的列表:
Escape | Meaning |
\newline | Ignored (continuation) |
\\ | Backslash (keeps a \) |
\' | Single quote (keeps `) |
\" | Double quote (keeps ") |
\a | Bell |
\b | Backspace |
\f | Formfeed |
\n | Newline (linefeed) |
\r | Carriage return |
\t | Horizontal tab |
\v | Vertical tab |
\N{id} | Unicode dbase id |
\uhhhh | Unicode 16-bit hex |
\Uhhhh... | Unicode 32-bit hex[1] |
\xhh | Hex digits value hh |
\ooo | Octal digits value |
\0 | Null (doesn't end string) |
\other | Not an escape (kept) |
--=阅读快乐=--
欢迎访问我的新鱼塘 www.pumaboyd.com