Python 基本字符

来源:互联网 发布:asp控件怎么隐藏js 编辑:程序博客网 时间:2024/06/05 03:29

关键字

False class finally is return
None continue for lambda try
True def from nonlocal while
and del global not with
as elif if or yield
assert else import pass
break except in raise

转译字符

转义序列 含义 \newline 忽略反斜杠和换行 \ 反斜杠() \’ 单引号(‘) \” 双引号(“) \a ASCII响铃(BEL) \b ASCII退格(BS) \f ASCII换页(FF) \n ASCII换行(LF) \r ASCII回车(CR) \t ASCII水平制表(TAB) \v ASCII垂直制表(VT) \ooo 八进制值ooo的字符 \xhh 十六进制值hh的字符 \uxxxx 16位的十六进制值为xxxx的字符 \Uxxxxxxxx 32位的十六进制值为xxxxxxxx的字符

转载:
http://python.usyiyi.cn/translate/python_352/reference/lexical_analysis.html#other-tokens

原创粉丝点击