赞
踩
lt = []
for i in range(100,1000):
a = i // 100
b = (i%100) // 10
c = i % 10
if a**3 + b**3 + c**3 == i:
lt.append(i)
for i in range(len(lt)-1):
print(lt[i],end = ", ")
print(lt[-1])
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。