Discuss / Python / ~~~~~~~~~

~~~~~~~~~

Topic source

一弦三思

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

  • 1

Reply