标签:int() 代码 时间 组成 lex 就是 大小 写法 int
a = 123
变量名 赋值 值
``` 驼峰体:AgeOfOldboy```
```下划线:(推荐使用):age_of_oldboy```
print = 123
print(print)
AgeOfOldboy = 67
age_of_oldboy = 67
aeg1 = 10
__ = 10
as = 10 //错误 不能以Python关键字作为变量名
1a = 'alex' //错误 变量名不能以数字开头
age = 10000000
age1 = 12
age2 = age
age1,age,age2
a101 = "marry"
a101 = "dabao"
print(a101)
age1 = 20
age2 = 18
age1 = 12
age3 = age2
age2 = 15
print(age1,age2,age3)
ID=12456654642135
变量全部大写叫做常量
msg = input("请输入您内容:")
print(int(msg) + 5)
(python3中的input获取到的内容都是字符串,python2中input获取的就是数据本身)
print("hello Word!")
标签:int() 代码 时间 组成 lex 就是 大小 写法 int
原文地址:https://www.cnblogs.com/caiyongliang/p/11404155.html