打印关键字
from keyword import kwlist
print(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' |
|