Python生兔子问题(斐波那契数列) while 1: a=int(input()) b=int(1) c=int(1) zs=int(0) if a<=2: print(1) else: for i in range(2, a, 1): zs = b + c b = c c = zs print(zs)