import keyword
print(keyword.kwlist) #打印出python中所有的关键字
python中所有的关键字

python中所有的关键字

[‘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’]

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-24
  • 2022-03-02
  • 2021-07-21
  • 2021-06-01
  • 2021-09-16
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2023-02-04
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案