python语言中的保留字符

Python / 866人浏览 / 0人评论

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关键字只包含小写字母。

参数描述
andexec
notassert
finallyor
breakfor
passclass
fromprint
continueglobal
raisedef
ifreturn
delimport
tryelif
inwhile
elseis
withexcept
lambdayield

转载注明:

0 条评论

还没有人发表评论

发表评论 取消回复

记住我的信息,方便下次评论
有人回复时邮件通知我