python 斐波拉契数列数列

'''斐波拉契数列'''
def Fibonacci(n):
  first, next = 0, 1
  i = 0;
  while i < n:
    print next
    first, next = next, first + next
    i = i + 1

posted on 2016-06-27 16:58  shaomine  阅读(244)  评论(0编辑  收藏  举报