Python数据类型
num1= 12
num2 = 1.2
print(type(num1)) # int 整型
print(type(num2)) # float 浮点型
a='hello'
b = True
print(type(a)) # str 字符串
print(type(b)) # bool 布尔型
c = [1, 2, 3]
d = (1, 2, 3)
print(type(c)) # list 列表
print(type(d)) # tuple 元组
e={1, 2, 3}
print(type(e)) # set 集合
f={'name': 'tom', 'age': 19}
print(type(f)) # 字典