参考答案:
for num1 in range(100,1000):
num2=str(num1)
if num1 == int(num2[0])**3+int(num2[1])**3+int(num2[2])**3:
print(num1)
参考答案:
for num1 in range(100,1000):
num2=str(num1)
if num1 == int(num2[0])**3+int(num2[1])**3+int(num2[2])**3:
print(num1)