python中常见类型:数值型,浮点型,复合型,字符串,列表,元组,字典,布尔类型,集合。
x1=3
x2=3.5
x3="hfiehhg"
x4=[1,2,3,4]
x5=(1,2,3,4)
x6={1:"we",
2:"you"}
x7={1,3}
x8=True
x9=3+4j
print(type(x1))
print(type(x2))
print(type(x3))
print(type(x4))
print(type(x5))
print(type(x6))
print(type(x7))
print(type(x8))
print(type(x9))
type():由于返回数据类型。