《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)

相关文章:

  • 2021-10-01
  • 2021-08-02
  • 2021-08-18
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
相关资源
相似解决方案