T=[] while True: i=len(T) while i >1: T[i-1]=T[i-1]+T[i-2] i=i-1 T.append(1) yield T
Sign in to make a reply
严肃的F同学