水仙花数(python) print("水仙花数为:") for j in range(100,1000): a=j//100 b=(j//10)%10 c=j%10 if(a*a*a+b*b*b+c*c*c==j): print(j)