y=0 for i in range(100,1000): n=str(i) for t in n: y=y+int(t)**3 if y==i: print(i) else: y=0
print(i)之后也要把y置0