def triangles(): a=[1] while True: yield a a=[a[i]+a[i+1] for i in range(len(a)-1)] a.insert(0,1) a.append(1) pass
Sign in to make a reply
喜欢游戏的发