L = [1] while True: L.append(0) L.insert(0,0) yield([x for x in L if x != 0]) L1 = [] i = 0 while i < len(L)-1: L1.append(L[i] + L[i+1]) i = i+1 L = L1
Sign in to make a reply
毛线qwe