Python中的保留字(关键字)是那些具有特殊含义的单词,不能用作变量名、函数名或其他标识符。Python 3.x中的保留字列表如下:
```
False
None
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是区分大小写的,所以`True`、`False`和`None`是小写的,而`True`、`False`和`None`作为标识符时必须使用小写字母。