📅  最后修改于: 2022-03-11 14:45:34.355000             🧑  作者: Mango
pi = 3.14 # float number
print(type(pi))
# Output class 'float'
# converting float integer
num = int(pi)
print("Integer number:", num)
# Output 3
print(type(num))
# Output class 'int'