Discuss / Python / 一次作业,之后再优化

一次作业,之后再优化

Topic source

G好大的鱼

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

  • 1

Reply