变量
变量名 = 值
变量名自定义,需要满足命名规则
标识符
与C语言标准一致
不能使用关键字
关键字如下
False None True and as assert 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
命名习惯
- 见名知意
- 大驼峰
- 小驼峰
- 下划线
myName = 'Phil'
print(myName)
my_school = "CCU"
print(my_school)
MySex = "Male"
print(MySex)