剑指offer python版 斐波那契数列 def fib(n): a,b=0,1 for i in range(n): b,a=a+b,b yield b print([n for n in fib(10)])