变量名称的定义
1.不能是数字开头
2.符号只能用—(下划线)
3.python变量名称区分大小写
4.关键字不能作为变量名称使用(已被默认使用,代表特殊含义)
‘False’, ‘None’, ‘True’, ‘and’, ‘as’, ‘assert’, ‘async’, ‘await’, ‘break’, ‘class’, ‘continue’, ‘def’, ‘del’, ‘elif’, ‘else’, ‘except’, ‘finally’, ‘for’, ‘from’, ‘global’, ‘if’, ‘import’, ‘in’, ‘is’, ‘lambda’, ‘nonlocal’, ‘not’, ‘or’, ‘pass’, ‘raise’, ‘return’, ‘try’, ‘while’, ‘with’, ‘yield’
5.内建函数名不能作为变量名使用(如果使用自带功能会被覆盖)
type
int
str
list
(所有的可以查看python的官方手册)
python Docs F1 选项