L = [1]
n = 0
while n < 10:
yield L
L = [1] + [L[x]+L[x+1] for x in range(len(L)-1)] + [1]
n = n + 1
Sign in to make a reply
由于法律问题不予显示
L = [1]
n = 0
while n < 10:
yield L
L = [1] + [L[x]+L[x+1] for x in range(len(L)-1)] + [1]
n = n + 1