L = [1]
while True:
yield L
L = [1] + [ L[index] + L[index+1] for index in range(len(L)-1)] + [1]
Sign in to make a reply
恁麻了批
L = [1]
while True:
yield L
L = [1] + [ L[index] + L[index+1] for index in range(len(L)-1)] + [1]