import keyword
print(keyword.kwlist)
"""
['False', 'None', 'True', '__peg_parser__',
'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']
"""
day02-2-查看关键字与保留字
最新推荐文章于 2024-06-17 17:35:06 发布