Discuss / Python / 作业

作业

Topic source

恁麻了批

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

    L = [1]

    while True:

        yield L

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


  • 1

Reply