走不尽的路,读不完的书,不为事势所迫,不为生计所窘,不为世俗作态. 尽必尽之力,码必码之码,坐等功成名就.
Python变量
# --------------------------- # 《Python实例教程》 __author__ = 'stormsha' __date__ = '2019/4/10 14:21' # ---------------------------' """ 认识 Python 变量,体验无需定义类型的 Python 变量 认识 Python 输入语句,输入的内容是字符串类型 | <class 'str'> """ a = 10 b = 20 c = input("请随意输入一个数字:") print("变量a的类型:", type(a), "Value of a = ", a) print("变量b的类型:", type(b), "Value of b = ", b) print("变量b的类型:", type(a+b), "Value of a+b = ", a+b) print("变量c的类型:", type(c), "Value of c = ", c)
转载请注明: StormSha » Python实例教程 | Python变量