Discuss / Python / 作业

作业

Topic source

    L =[1]

    while True:

        yield L

        L.append(0)

        L.insert(0,0)

        L2=[L[i]+L[i+1] for i in range(len(L)-1)]

        L=L2


  • 1

Reply