2.3.1. 关键字

以下标识符被作为语言的保留字或称 关键字,不可被用作普通标识符。关键字的拼写必须与这里列出的完全一致。

  1. False await else import pass
  2. None break except in raise
  3. True class finally is return
  4. and continue for lambda try
  5. as def from nonlocal while
  6. assert del global not with
  7. async elif if or yield