Python 变量定义规范

时间:2024-10-13 17:51:12

Python语言的入门与精通。

Python 变量定义规范

变量定义规则

1、变量名只能是:字母、数字或下划线的组合。

Python 变量定义规范

3、以下关键字不能声明为变量:and,as,assert,break,class巳呀屋饔,continue,defdel,elif,else,except,finally,for,from,glob锾攒揉敫al,if,import,in,is,lambda,not,for,pass,print,raise,returm try,while,with,yield.

Python 变量定义规范

2、下划线age_of_oldboy

Python 变量定义规范
© 2025 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com