摘要: import sys # 生成器函数--斐波那契 def fibonacci(n): a, b, counter = 0, 1, 0 while True: if (counter > n): return yield a a, b = b, a+b counter += 1 f = fabonac 阅读全文
posted @ 2020-12-24 16:10 子觉 阅读(593) 评论(0) 推荐(0) 编辑