摘要: 原文:https://www.cnblogs.com/evening/archive/2012/03/29/2423554.html 阅读全文
posted @ 2021-06-07 21:41 花生咪6 阅读(20) 评论(0) 推荐(0)
摘要: 原文:https://www.cnblogs.com/findlisa/p/10179160.html 巧妙实现杨辉三角代码 def triangles(): N=[1] #初始化为[1],杨辉三角的每一行为一个list while True: yield N #yield 实现记录功能,没有下一个 阅读全文
posted @ 2021-06-07 20:51 花生咪6 阅读(137) 评论(0) 推荐(0)