Python找出三位数的水仙花数
Python找出三位数的水仙花数
Python找出三位数的水仙花数
Python找出三位数的水仙花数
Python找出三位数的水仙花数Python找出三位数的水仙花数
for i in range(100, 1000):
single = i%10
ten = (i-single)/10%10
hundreds = i//100
if pow(single, 3) + pow(ten, 3) + pow(hundreds, 3) == i:
print(i)