Python 輸出三位數中全部水仙花數

實現代碼:python count=0 print("全部三位數中的水仙花數是:") for i in range(100,1000):     a = i//100     b = (i-a*100)//10     c = (i-a*100-b*10)     if i == pow(a,3)+pow(b,3)+pow(c,3):         print(i)         count+
相關文章
相關標籤/搜索