Discuss / Python / 练习

练习

Topic source

GUranium233

#1 Created at ... [Delete] [Delete and Lock User]

def triangles(): d=[] while True: yield d d =[d[i]+d[i-1] for i in range(1,len(d))] d.append(1) d.insert(0,1)


  • 1

Reply