Python中共有33个关键字,都不能作为变量名来使用。
False | None | True | and | as | assert | break |
class | continue | def | del | elif | else | except |
finally | for | from | global | if | import | in |
nonlocal | lambda | is | not | or | pass | raise |
return | try | while | with | yield |
Python中共有33个关键字,都不能作为变量名来使用。
False | None | True | and | as | assert | break |
class | continue | def | del | elif | else | except |
finally | for | from | global | if | import | in |
nonlocal | lambda | is | not | or | pass | raise |
return | try | while | with | yield |