摘要: for i in range(10,1000): sum=0 #各个位数的立方和 temp=i while temp: sum=sum+(temp%10)**3 #累加 temp//=10 #地板除 if sum==i: print(i) for i in range(10,1000): for i 阅读全文
posted @ 2018-07-17 14:30 猪啊美 阅读(191) 评论(0) 推荐(0) 编辑