Discuss / Python / 很菜,参考了下别人的!

很菜,参考了下别人的!

Topic source

    L1 = [1]

    while True:

        yield L1

        L1 =[1] + [L1[N] + L1[N + 1] for N in range((len(L1))-1)] + [1]


  • 1

Reply