python3 简单实现杨辉三角

def yanghui(): L = [1] while True: yield L if len(L)==1: L.append(1) else: # for i in range(0,len(L)-1): # temp[i] = L[i]+L[i+1]
相关文章
相关标签/搜索