Discuss / Python / 作业

作业

Topic source

    l=[1]

    while True:

        yield l

        l=[([0]+l)[i]+(l+[0])[i] for i in range(len([0]+l))]


  • 1

Reply