... 浮点数print(isinstance(num,int))#判断是否为整数. 2.当num为字符串是时. num=input("输入一个数字:").strip() print(type(eval(num)))#输出字符串类型 ...
確定! 回上一頁