Terms | 解释 |
---|---|
Variable | 标识符 |
the Variable Name | 标识符 |
>>> name = 'Pagge'
>>> age = 3
>>> print ('我的名字叫', name, ',今年', age, '岁了!')
我的名字叫 Pagge ,今年 3 岁了!
>>> name = 'Pagge'
>>> print(name)
Pagge
>>> name = 'George'
>>> print(name)
George
>>> a = 5.0
>>> type(a)
有小数点(decimal point)的是整形(int),没有小数点的是浮点型(float)
参考文献
[1] Tony Gaddis,Starting Out with Python[M],United Kingdom: Pearson,2019