Discuss / Python / 作业

作业

Topic source

达仔hongda

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

def triangles(): L=[1] while True: yield L L1 = [0] + L L2 = L + [0] L = [L1[i]+L2[i] for i in range(len(L1))]


  • 1

Reply