首页 > 其他 > 详细

2、变量

时间:2020-02-16 16:28:54      阅读:63      评论:0      收藏:0      [点我收藏+]


2.1、变量的组成:

- 字母

- 数字

- 下划线

2.2、要求:

数字不能开头

不能是关键字

最好不好和python内置的东西重复 ***

Python关键字,也不能使用 ‘and‘, ‘as‘, ‘assert‘, ‘break‘, ‘class‘, ‘continue‘, ‘def‘, ‘del‘, ‘elif‘, ‘else‘, ‘except‘, ‘exec‘,

‘finally‘, ‘for‘, ‘from‘, ‘global‘, ‘if‘, ‘import‘, ‘in‘, ‘is‘, ‘lambda‘, ‘not‘, ‘or‘, ‘pass‘, ‘print‘, ‘raise‘, ‘return‘, ‘try‘, ‘while‘, ‘with‘, ‘yield

2、变量

原文:https://www.cnblogs.com/LiuChang-blog/p/12316736.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!