L = [1]
while True:
yield(L)
L = [L[i-1] + L[i] if i!=0 and i!=len(L) else 1 for i in range(len(L)+1)]
Sign in to make a reply
在路上
L = [1]
while True:
yield(L)
L = [L[i-1] + L[i] if i!=0 and i!=len(L) else 1 for i in range(len(L)+1)]