{"author_name":"mFumi","type":"rich","url":"https://mfumi.hatenadiary.org/entry/20130812/1376289939","description":"\u30d0\u30fc\u30b8\u30e7\u30f3: python3.3 \u53c2\u8003: http://docs.python.org/3/library/itertools.html itertools\u306epython\u306b\u3088\u308b\u5b9f\u88c5\u304c\u66f8\u3044\u3066\u3042\u308b\u306e\u3067\u52c9\u5f37\u306b\u306a\u308a\u307e\u3059\uff0e \u30fbitertools.accumulate(iterable[, func]) In [2]: it = itertools.accumulate([1,2,3]) In [3]: for i in it: ...: print(i) ...: 1 3 # 1+2 6 # 3+3 In [6]: it = itertools.accumulate([1,2,3],lambda x,y\u2026","blog_title":"mfumi\u306e\u65e5\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmfumi.hatenadiary.org%2Fentry%2F20130812%2F1376289939\" title=\"python\u306eitertools\u30e1\u30e2 - mfumi\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"categories":["python"],"blog_url":"https://mfumi.hatenadiary.org/","provider_url":"https://hatena.blog","height":"190","width":"100%","published":"2013-08-12 15:45:39","title":"python\u306eitertools\u30e1\u30e2","author_url":"https://blog.hatena.ne.jp/mFumi/","version":"1.0","provider_name":"Hatena Blog"}