<code>def fab(n): a, b = 0, 1 while n: yield b a, b = b, a+b n -= 1/<code> 分享到: 閱讀更多 程序員亮哥 的文章 關鍵字: 面試題 數列 面試