标签:python实现杨辉三角

python实现杨辉三角

#python实现杨辉三角

📚 共 2 篇文章 🏷️ 标签分类 📝 python实现杨辉三角
python实现杨辉三角

python实现杨辉三角思路

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