Discuss / Python / 学习了

学习了

Topic source

Tim_Ho_

#1 Created at ... [Delete] [Delete and Lock User]
    L = [1]
    while True:
        yield L 
        L = [1] + [L[i] + L[i+1] for i in range(len(L) - 1)] + [1]

  • 1

Reply