L = [1] yield L while True: s = len(L) L = [1]+[L[n+1]+L[n] for n in range(s-1)]+[1] yield L
Sign in to make a reply
墨染苍瞳