a = input('請輸入一個五位數:') # 判斷長度是否是5位,是否有純數位組成 if len(a) == 5 and a.isdigit(): # 將str轉為int a = int(a) # (萬位與 ...
確定! 回上一頁