def triangles(): L=[] while True: L = [1] + [sum(L[i:i+2]) for i in range(len(L))] yield L
Sign in to make a reply
用户7495839230