📜  输入浮点python代码示例

📅  最后修改于: 2022-03-11 14:47:03.443000             🧑  作者: Mango

代码示例1
# python code to take float input
val = float(input("Enter any number: "))
print("value of val2: ", val)
print("type of val2: ", type(val))