遞歸
def fibnacci(p):
? ? lst = []
? ? for i in range(p):
? ? ? ? if i == 1 or i == 0:
? ? ? ? ? ? lst.append(1)
? ? ? ? else:
? ? ? ? ? ? lst.append(lst[i-1]+lst[i-2])
? ? print(lst)