print(type(input("输入数字:"))) print(type(int(input()))) 输入数字:123 <class 'str'> 123 <class 'int'> 默认输入的数据类型是字符串!