Discuss / Python / 作业喵

作业喵

Topic source

Slavery

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

    L = [1]

    n = 1

    yield L

    while 1:

        L = L + [0]

        L1 = [0] + L

        L = [L[i] + L1[i] for i in range(len(L))]

        yield L


  • 1

Reply