Python 3.5中定义了35个保留字,这些保留字在编程中用于表示特定的语法结构和功能,不能用作变量名、函数名或其他标识符。以下是Python 3.5保留字的列表:
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
请注意,Python是区分大小写的,所以这些保留字也是区分大小写的。