Python关键字
关键词
关键字是Python编程语言(以及任何其他编程语言,如C,C++,Java等)中的保留字,其含义已定义,我们无法更改其含义。在python编程语言中,关键字区分大小写。
注意:我们不能使用任何保留字(称为关键词)作为标识符(如变量名,函数名等)。
Python关键字列表
这是Python关键字的列表(该列表可以根据Python版本而有所不同),
在Python2.5中
and del from not while
as elif global or with
assert else if pass yield
break except import print
class exec in raise
continue finally is return
def for lambda try在Python3.8.1中
False None True and as
assert async await 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阅读:Python程序打印所有关键字的列表
参考:https://docs.python.org/2.5/ref/keywords.html
热门推荐
10 感谢韩语老师祝福语简短
11 升职文案高级祝福语简短
12 花童结婚祝福语大全简短
13 向国庆送祝福语简短
14 什么寄语简短祝福语女生
15 客户回礼祝福语大全简短
16 女孩生日祝福语简短创意
17 家长回复节日祝福语简短
18 给外婆敬酒祝福语简短