变量是什么?
变:变化,重在变字,量:计量,衡量,表示一种状态。
变量字面理解就是一个可能改变的量,也就是这个值是不固定的。
变量名:
a.数字
b.字母
c.下划线
变量的定义
level = 1
level : 变量名, = :赋值符号,1 :值
PS:
1.数字不能开头
2.不能用关键字:(查看所有的关键字:help("keywords"))
Here is a list of the Python keywords. Enter any keyword to get more help. and elif import return as else in try assert except is while break finally lambda with class for not yield continue from or def global pass del if raise