📌  相关文章
📜  如何检查输入是否为整数 python 代码示例

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

代码示例5
num = input("Enter your number ")

print("\n")
if num.isdigit():
    print("User input is Number ")
else:
    print("User input is string ")