摘要: itertools的accumulate()是python3中引入的内置模块, https://docs.python.org/zh cn/3/library/itertools.html 从文档中可以看出,accumulate的功能就是一种累加,例如斐波那契数列。 那么如何在python2中实现呢 阅读全文
posted @ 2020-03-19 10:39 ZH奶酪 阅读(507) 评论(0) 推荐(0) 编辑