n = [1] while True: x = n[:] yield n[:] for i in range(1,len(n)): n[i] = x[i-1]+x[i] n[0] = 1 n.append(1)
Sign in to make a reply
英睿都督