python实现杨辉三角思路 程序输出需要实现如下效果:[1][1,1][1,2,1][1,3,3,1]......方法:迭代,生成器deftriangles()L=[1]while python实现杨辉三角