python 练习 19

#!/usr/bin/python
# -*- coding: UTF-8 -*-

for n in range(100,1000):
    i = n / 100
    j = n / 10 % 10
    k = n % 10
    if n == i ** 3 + j ** 3 + k ** 3:
        print n

 

posted @ 2016-05-26 17:04  七月的尾巴_葵花  阅读(166)  评论(0编辑  收藏  举报