python10 转义字符
2013-07-31 09:03
253 查看
转义字符,当我们要打印某些特殊字符的时候,需要用到转义字符了。
看下面表格
看下面表格
转义字符 | 内容 |
---|---|
\\ | Backslash () |
\' | Single-quote (') |
\" | Double-quote (") |
\a | ASCII bell (BEL) |
\b | ASCII backspace (BS) |
\f | ASCII formfeed (FF) |
\n | ASCII linefeed (LF) |
\N{name} | Character named name in the Unicode database (Unicode only) |
\r ASCII | Carriage Return (CR) |
\t ASCII | Horizontal Tab (TAB) |
\uxxxx | Character with 16-bit hex value xxxx (Unicode only) |
\Uxxxxxxxx | Character with 32-bit hex value xxxxxxxx (Unicode only) |
\v | ASCII vertical tab (VT) |
\ooo | Character with octal value ooo |
\xhh | Character with hex value hh |
相关文章推荐
- Python下字符串的创建和转义字符的使用 - 千月的python linux 系统管理指南学习笔记(10)
- 笨办法学python笔记:习题10 那是什么(转义字符)
- Python标准库10 多进程初步 (multiprocessing包)
- Python Twisted系列教程10:增强defer功能的客户端
- Learn Python The Hard Way学习(10) - 那是什么?
- A Byte of Python 笔记(10)输入/输出:文件和储存器
- python写一个循环1+到10打印计算步骤的脚本——纯粹无聊玩的
- Python高级篇————10、Python2.x与3.x的版本的区别
- Python入门--10--序列
- Python一日一练10----快速排序
- python格式化字符串和转义字符
- Python学习笔记-注释和变量,转义字符
- 用python读取cifar-10与cifar-100图像数据
- Python格式化字符串的替代符与转义字符
- Python+OpenCV学习(10)---SURF
- Python进阶之路—10
- Python入门记录10
- 用Python和Pygame写游戏-从入门到精通(10)
- < 笔记 > Python - 10 Python IO
- 洗礼灵魂,修炼python(40)--面向对象编程(10)—定制魔法方法+time模块