当前位置: 移动技术网 > IT编程>脚本编程>Python > Python学习笔记(3)Python中的转义字符

Python学习笔记(3)Python中的转义字符

2019年04月19日  | 移动技术网IT编程  | 我要评论

神奇侠侣蓝凤凰,红土地党建网,钢套钢直埋保温管

escape what it does. 含义
\\ 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) unicode中的字符名;name就是它的名字
\r ascii carriage return (cr) 回车符
\t ascii horizontal tab (tab) 水平制表符
\uxxxx character with 16-bit hex value xxxx (unicode only) 值为16位十六进制xxxx的字符
\uxxxxxxxx character with 32-bit hex value xxxxxxxx (unicode only) 值为32位十六进制xxxx的字符
\v ascii vertical tab (vt) 垂直制表符
\ooo character with octal value ooo 值为八进制ooo的字符
\xhh character with hex value hh 值为十六进制数hh的字符

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网