python中的保留字不能用作常数或变数以及标识符名称:and,exec,not,assert,finally,or,break,for,pass,class,from,print,continue,global,raise,def,if,return,del,import,try,elif,in,while,else,is,with,except,lambda,yield,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 |
转载注明:
感谢博主,喝杯咖啡~
感谢博主,喝杯咖啡~
还没有人发表评论