Python初学(2)变量类型
# -*- coding: UTF-8 -*- # 变量赋值counter = 100 # 赋值整型变量miles = 1000.0 # 浮点型name = "John" # 字符串print counter;print miles;print nameprint("\n") # 多个变量赋值a = b = c = 1d, e, f = 1, 2, "john"print(a);print(b);print(c);print(d);print(e);print(f)print("\n") # 五个标准的数据类型#...
more...