Discuss / Python / 膜拜大佬

膜拜大佬

Topic source

画手

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

def triangles():

    L = [1]

    while True:

        yield L

        OLO = [0] + L + [0]

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


  • 1

Reply