L = [1,1] yield [1] yield L while True: m = [] for n in range(len(L)-1): m.append(L[n] + L[n+1]) L = [1] + m + [1] yield L
方法比较笨
你好!请问 while True: 这句话有什么作用? 我没有这句,只输出一个[1]
循环用,无限循环,永恒为真
挺好的方法,666
Sign in to make a reply
雷锋20110
方法比较笨