摘要: 1 #!/usr/bin/python3 2 3 import sys 4 5 def fibonacci(n): # 生成器函数 - 斐波那契 6 a, b, counter = 0, 1, 0 7 while True: 8 if (counter > n): 9 return 10 yield 阅读全文