python 练习 17

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

f1 = 1
f2 = 1
for i in range(1,21):
    print '%12d %12d' % (f1,f2)
    if (i % 2) == 0:
        print ''
    f1 = f1 + f2
    f2 = f1 + f2

 

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