{"type":"rich","width":"100%","provider_name":"Hatena Blog","height":"190","published":"2016-08-26 23:51:26","description":"Python\u3067\u3082\u3001\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u624b\u52d5\u3067\u56de\u3057\u3066\u3044\u304f\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002 \u5b9f\u969b\u306e\u3068\u3053\u308d \u30d5\u30c4\u30fc\u306b\u307e\u308f\u3057\u3066\u3044\u304f\u3060\u3051\u306a\u3089\u3001\u5ef6\u3005\u3068\u7d44\u307f\u8fbc\u307f\u95a2\u6570next()\u3092\u30d6\u30f3\u56de\u3057\u3066\u3044\u304f\u3060\u3051\u3002 \u6700\u5f8c\u306fStopIteration\u3092\u5410\u3044\u3066\u505c\u6b62\u3002 val = (x for x in range(1,10)) next(val) #>> 1 next(val) #>> 2 next(val) #>> 3 next(val) #... #>>9 next(val) #>Traceback (most recent call last): #> File \"<stdin>\", line 1, in <module> #>StopItera\u2026","provider_url":"https://hatena.blog","blog_url":"https://shuzo-kino.hateblo.jp/","version":"1.0","author_url":"https://blog.hatena.ne.jp/shuzo_kino/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2016%2F08%2F26%2F235126\" title=\"\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u624b\u52d5\u3067\u56de\u3057\u3066\u3044\u304f - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://shuzo-kino.hateblo.jp/entry/2016/08/26/235126","blog_title":"Bye Bye Moore","title":"\u30a4\u30c6\u30ec\u30fc\u30bf\u3092\u624b\u52d5\u3067\u56de\u3057\u3066\u3044\u304f","image_url":null,"categories":["python"],"author_name":"shuzo_kino"}