Discuss / Python / 五行那个是真的骚

五行那个是真的骚

Topic source
def triangles():
    t = [[1]]
    for i in t:
        yield i
        for s in range(len(i)+1):
            if s==len(i) or s==0:
                b = 1
            else:
                b = i[s-1]+i[s]
            x.append(b)
        t.append(x)

  • 1

Reply