def yh_triangle(): N = [1] while True: yield N N.append(0) N = [N[i-1] + N[i] for i in range(len(N))]
本文标题:杨辉三角
本文链接:https://www.haomeiwen.com/subject/cxvnwqtx.html
网友评论