摘要: for i in range(100,1000): x = i//100 y = (i//10)%10 z = (i%100)%10 a = 0 num = x**3+y**3+z**3 if(i==num): print("%d是水仙花数"%i) 阅读全文
posted @ 2018-03-31 21:08 小芋头跑跑 阅读(225) 评论(0) 推荐(0) 编辑