Discuss / Python / 修修改改,最终版本

修修改改,最终版本

Topic source

def triangle(): l = [1] while True: yield l l = [1] + [l[i] + l[i+1] for i in range(len(l)-1)] + [1]

最佳!


  • 1

Reply