代码示例:(标识:python_type_float)
python_type_float.py
x = 20.5

#display x:
print(x)

#display the data type of x:
print(type(x))
运行结果: