1, 关键字
所有的保留字
- False await else import pass
- None break except in raise
- True class finally is return
- and continue for lambda try
- as def from nonlocal while
- assert del global not with
- async elif if or yield
2, 保留的标识符类
2.1 _*
不会被 from module import * 导入
2.2 __*__
系统定义的名称.
这些名称由解释器及其实现所定义.
2.3 __*
类的私有名称.
这种名称在类定义中使用时, 会以一种混合形式重写, 以避免在基类及派生类的 "私有" 属性之间出现名称冲突.
来源: http://www.bubuko.com/infodetail-3399364.html