python关键字
>>> print ("hello world")
hello world
>>> import keyword
>>> keyword.kwlist
['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']
>>>
['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']
Python关键字全览
本文介绍了Python编程语言中的所有关键字,包括但不限于'False', 'None', 'True'等基本逻辑关键字,以及'import', 'class', 'def'等编程结构关键字。通过本文,读者可以全面了解Python语言的基本语法构成。
1万+

被折叠的 条评论
为什么被折叠?



