L=[1] while True: yield L L = [L[n-1] + L[n] for n in range(len(L))] L.append(1) L[0] = 1
逻辑清晰,代码简单。多好的方法
Sign in to make a reply
难阿难难难