# 凡是小数都是浮点类型,float
x = 3.1415
print(x) # 3.1415
print(type(x)) # <class 'float'>
x = 10.0
print(x, type(x)) # 10.0 <class 'float'>
f = 3.14E5
print(f, type(f)) # 314000.0 <class 'float'>
f = 3E5
print(f, type(f)) # 300000.0 <class 'float'>
f = 3.1E5
print(f) # 310000.0
f = 3.1E-3
print(f) # 0.0031
12-14
2587