变量定义规则:
(1) 变量名只能是 字母、数字或下划线的任意组合
(2) 变量名的第一个字符不能是数字
(3) 以下关键字不能声明为变量名
['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']
变量赋值:
- name = "Jack"
- name1 = name
来源: