Home > Backend Development > Python Tutorial > Escape characters in Python

Escape characters in Python

高洛峰
Release: 2016-10-19 11:47:07
Original
1389 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template