打印出所有的“水仙花数”,所谓“水仙花数”是指一个 3 位数,其各位数字
立方和等于该数本身。例如, 153 是一个水仙花数,因为 153=13+53+33。
for i in range(1000):
if i<100:
continue
s = 0
a = int(i//100)
b = int(i//10%10)
c = int(i%10)
s = a**3+b**3+c**3
if s == i:
print("{} 是水仙花数".format(i))