python判斷輸入 是否為數字, 在接收raw_input方法後,判斷接收到的字符串是否為數字. 例如:. str = raw_input("please input the number:"). if str.isdigit():.
確定! 回上一頁