Home  >  Article  >  Backend Development  >  Escape characters in Python

Escape characters in Python

高洛峰
高洛峰Original
2016-10-19 11:47:071352browse

Escape What it does. Meaning

\ Backslash () backslash

' Single-quote (') single quote

" Double-quote (") double quote

a ASCII bell (BEL) bell symbol

b ASCII backspace (BS) backspace character

f ASCII formfeed (FF) paper feed character

n ASCII linefeed (LF) newline character

N{name} Character named name in the Unicode database (Unicode only) Unicode database The character name in; name is its name

r ASCII Carriage Return (CR) carriage return character

t ASCII Horizontal Tab (TAB) horizontal tab character

uxxxx Character with 16-bit hex value xxxx (Unicode only) Character with 32-bit hex value xxxxxxxx (Unicode only) Character with 32-bit hex value xxxx

v ASCII vertical tab (VT) Vertical tab character

ooo Character with octal value ooo Character with octal value ooo

xhh Character with hex value hh Character with hexadecimal value hh

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn