{"categories":["python"],"title":"\u30a4\u30c6\u30ec\u30fc\u30bf","url":"https://python-remrin.hatenadiary.jp/entry/2017/05/24/180825","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpython-remrin.hatenadiary.jp%2Fentry%2F2017%2F05%2F24%2F180825\" title=\"\u30a4\u30c6\u30ec\u30fc\u30bf - Remrin\u306epython\u653b\u7565\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>","author_url":"https://blog.hatena.ne.jp/rare_Remrin/","blog_url":"https://python-remrin.hatenadiary.jp/","author_name":"rare_Remrin","version":"1.0","type":"rich","image_url":null,"blog_title":"Remrin\u306epython\u653b\u7565\u65e5\u8a18","width":"100%","height":"190","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","published":"2017-05-24 18:08:25","description":"\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u306f\uff1a \uff11\uff0e \u30b7\u30fc\u30b1\u30f3\u30b9\u306a\u3069\u306e\u8981\u7d20\u3092\u6b21\u3005\u53d6\u308a\u51fa\u3059\u3002\u2192 __next__ \uff12\uff0e \u7d42\u308f\u3063\u305f\u3089\u77e5\u3089\u305b\u308b\u3002 \u2192 StopIteration for\u30eb\u30fc\u30d7\u3084\u5185\u5305\u8868\u8a18\u3067\u306f\u5185\u90e8\u3067iter()\u95a2\u6570\u304c\u547c\u3070\u308c\u3001 \u9806\u306b\u300c__next__\u300d\u3092\u3057\u3066\u3044\u304d\u3001\u6700\u5f8c\u306bStopIteration\u3067\u505c\u6b62\u3059\u308b\u306e\u3067\u3001 __next__\u3084StopIteration\u3092\u6c17\u306b\u305b\u305a\u4f7f\u3048\u308b\u3002 \u300c\u9045\u5ef6\u8a55\u4fa1\u300d\uff1a \u30a4\u30c6\u30ec\u30fc\u30bf\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u751f\u6210\u6642\u306b\u306f\u8981\u7d20\u306f\u751f\u6210\u305b\u305a\u3001 \u5fc5\u8981\u306b\u306a\u3063\u305f\u3068\u304d\u306b\u8981\u7d20\u3092\u751f\u6210\u3057\u3066\u3044\u304f\u3002 \u2192\u7701\u30e1\u30e2\u30ea\u304b\u3064\u9ad8\u901f\u5316 \u305f\u3060\u3057max()\u3084sum()\u306a\u3069\u3068\u4e00\u7dd2\u306b\u4f7f\u3046\u3068\u5168\u8981\u7d20\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3001\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u7279\u9577\u306f\u3042\u307e\u308a\u6d3b\u304b\u3055\u308c\u306a\u3044\u3002 i\u2026"}