當num確定為數字后num=123.4print(isinstance(num,float))#判斷是否為浮點 ... num=input("輸入一個數字:").strip() print(type(eval(num)))#輸出字符 ...
確定! 回上一頁