def fibonacci(n)
"""定义一个裴波那契函数"""
i = 0
num1 = 0
num 2 = 1
nums = []
while i < n:
nums.append(num1)
num1, num2 = num2, num1+num2
i += 1
return nums
def fib(n)
i = 2
items = [0, 1]
while i < n:
items.append(items[i-1]+items[i-2])
i += 1
return items