Python 水仙花數

#-*-coding:utf-8-*- while True: num = (int)(input("請輸入一個三位數")) if(not(99 < num < 999)): print ("這個數字不屬於3位數,請重新輸入") continue #分解個位、是爲、百位 if((num/100)**3 + ((num%100)/10)**3
相關文章
相關標籤/搜索