Python 内建函数和保留字
来源:互联网 发布:美国mac气动官网中文版 编辑:程序博客网 时间:2024/06/03 13:40
保留字:
In [4]: import keywordIn [5]: keyword.kwlistOut[5]: ['False', 'None', 'True', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield']
其他可用:
A:
absabstractmethodallandanyapplyasascii (python3新增)assert
B:
basestring(python3已删除)binboolbreakbuffer(python3已删除)bytearraybytes
C:
callableclassclassmethodcompilecomplex
D:
defdeldelattrdictdirdivmod
E:
elifelseevalexceptexecexecfile(python3 删除)
F:
filterfinallyfloatforformatfromfrozenset
G:
getattrglobalglobals
H:
hasattrhashhelphex
I:
idifimportininputintisisinstanceisubclassiter
L:
lambdalenlistlocals
M:
mapmaxmemoryviewmin
N:
nextnonlocal (python3新增)not
O:
objectoctopenorord
P:
passpowprintproperty
R:
raiserangereprreturnreloadreversedround
S:
setsetattrslicesortedstrsumsuper
T:
trytupletyple
V:
vars
W:
whilewith
X:
xrange (python3 已删除)
Y:
yield
Z:
zip
欢迎补充~
阅读全文
0 0
- Python 内建函数和保留字
- Python工厂函数和内建函数
- Bash Shell内建命令和保留字
- Bash Shell内建命令和保留字
- [Python]属性和property内建函数
- Python内建函数str()和repr()
- python内建函数any()和all()
- Python 内建函数
- Python内建函数
- Python内建函数
- Python 内建函数
- python 内建函数
- python内建函数
- Python内建函数
- Python 内建函数
- Python--内建函数
- python-内建函数
- python 内建函数
- 欢迎使用CSDN-markdown编辑器
- HUB怎么选?USB HUB常见问题解答。
- 成功错误返回信息
- 常量池、运行时常量池、字符串值基本概念区分
- 同步和异步的区别
- Python 内建函数和保留字
- 经典排序函数模板
- file
- Lenovo T460 Fn功能键切换
- 实例讲解ArrayList用法
- android 7.0
- JS实现自动刷新
- iOS 模仿Pokemon Go主页的动画Menu
- HTML5文字排版的小技巧