L=[1] while(1): yield L L=[1]+[L[i]+L[i-1] for i in range(len(L)) if i>=1]+[1]
Sign in to make a reply
一弦三思