斐波那契数列 Posted on 2018-04-10 while True: n = int(input('输入打印的个数:')) a, b = 1, 1 for _ in range(1, n+1): print(a, end=' ') a, b = b, a+b print('\n') # 1,1,2,3,5,8,13,21,34