源代码
txt = "20491001" x = txt.isnumeric() print(x)
运行结果