{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmorchin.hatenadiary.org%2Fentry%2F20090410%2Fp1\" title=\" \u914d\u5217\u306bsum\u3092\u9069\u7528 - \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\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>","description":"\u30e9\u30b7\u30a6\u30e9: python\u3067flatten (http://d.hatena.ne.jp/bellbind/20090408/1239207990) sum()\u306e\u5f15\u6570\u306f\u901a\u5e38\u3001\u6570\u5024\u306e\u30ea\u30b9\u30c8\u3060\u3068\u601d\u3046\u304c\u3001\u30ea\u30b9\u30c8\u306b\u3082\u9069\u7528\u3067\u304d\u308b\u306e\u306f\u77e5\u3089\u306a\u304b\u3063\u305f\u3002 >>> sum([[1], [2], [3,4]], []) [1, 2, 3, 4] \u6587\u5b57\u5217\u306f\u30c0\u30e1\u3089\u3057\u3044\u3002 >>> sum(['a', 'b', 'c'], '') Traceback (most recent call last): File \"<stdin>\", line 1, in <module> TypeError: sum() can't sum \u2026","published":"2009-04-10 00:00:00","categories":["Python"],"title":" \u914d\u5217\u306bsum\u3092\u9069\u7528","provider_name":"Hatena Blog","type":"rich","blog_url":"https://morchin.hatenadiary.org/","image_url":null,"blog_title":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u65e5\u8a18","height":"190","author_name":"morchin","width":"100%","url":"https://morchin.hatenadiary.org/entry/20090410/p1","provider_url":"https://hatena.blog","version":"1.0","author_url":"https://blog.hatena.ne.jp/morchin/"}