{"title":"Python\u306efor\u301celse\u69cb\u6587","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fy0m0r.hateblo.jp%2Fentry%2F20120130%2F1327929442\" title=\"Python\u306efor\u301celse\u69cb\u6587 - \u30e1\u30e2\u7f6e\u304d\u5834\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","published":"2012-01-30 22:17:22","height":"190","type":"rich","image_url":null,"blog_title":"\u30e1\u30e2\u7f6e\u304d\u5834","categories":["python"],"author_name":"yuheiomori0718","author_url":"https://blog.hatena.ne.jp/yuheiomori0718/","blog_url":"https://y0m0r.hateblo.jp/","provider_name":"Hatena Blog","url":"https://y0m0r.hateblo.jp/entry/20120130/1327929442","description":"\u4eca\u307e\u3067\u77e5\u3089\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u304c\u3001Python\u3060\u3068for\u301celse\u304c\u4f7f\u3048\u307e\u3059 else\u30d6\u30ed\u30c3\u30af\u304c\u51e6\u7406\u3055\u308c\u308b\u306e\u306f\u3001break\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u3001\u30eb\u30fc\u30d7\u51e6\u7406\u304c\u7d42\u4e86\u3057\u305f\u5f8c\u3067\u3059 for i in 10: if i == 0: break else: print(\"foo\") \u3053\u306e\u5834\u5408\u3001break\u3067\u30eb\u30fc\u30d7\u3092\u629c\u3051\u308b\u306e\u3067\u3001else\u30d6\u30ed\u30c3\u30af\u306f\u51e6\u7406\u3055\u308c\u307e\u305b\u3093 \u4ee5\u4e0b\u306e\u4f8b\u3067\u306fbreak\u3055\u308c\u308b\u3053\u3068\u306f\u306a\u3044\u306e\u3067else\u304c\u51e6\u7406\u3055\u308c\u3001bar\u3068print\u3055\u308c\u307e\u3059 for i in range(10): if i == 10: break else: print(\"bar\") # => bar \u4f7f\u3044\u6240 for\u3092\u4f7f\u3063\u3066\u30ea\u30b9\u30c8\u3092\u8d70\u67fb\u3057\u3066\u3001\u76ee\u7684\u2026","version":"1.0"}