编写生成斐波那契数列的函数并调用 1 def fib(n): 2 a, b = 1, 1 3 while a < n: 4 print(a, end = ' ') 5 a, b = b, a + b 6 print() 7 fib(1000)