Discuss / Python / 。。。

。。。

Topic source

def triangles(): L=[1] n=1 while True: yield L L=[1] for i in range(n): if i>0: L.append(M[i-1]+M[i]) L.append(1) M=L n=n+1


  • 1

Reply