L = [1]
while True:
yield L
L = [1] + [L[n] + L[n + 1] for n in range(len(L) - 1)] + [1]
Sign in to make a reply
夢醒已白髮
L = [1]
while True:
yield L
L = [1] + [L[n] + L[n + 1] for n in range(len(L) - 1)] + [1]