Python中的保留字是什么?
以下列表展示了Python关键字。这些是保留字,您不能将它们用作常量、变量或任何其他标识符名称。所有Python关键字都只包含小写字母。
and | exec | not |
---|---|---|
assert | finally | or |
break | for | pass |
class | from | |
continue | global | raise |
def | if | return |
del | import | try |
elif | in | while |
else | is | with |
except | lambda | yield |
更多Python相关文章,请阅读:Python 教程