{"description":"Python\u306efor\u30eb\u30fc\u30d7\u3084while\u30eb\u30fc\u30d7\u306f\u3001else\u3092\u6301\u3064\u3053\u3068\u304c\u3067\u304d\u308b\u3068\u805e\u3044\u3066\u9a5a\u304d\u307e\u3057\u305f\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306f\u5408\u6cd5\u3067\u3059\u3002 for i in range(5): print(\"i = \", i) else: print(\"loop\u306f\u7121\u4e8b\u306b\u7d42\u4e86\u3057\u307e\u3057\u305f\") \u5b9f\u884c\u4f8b\u306f\u4ee5\u4e0b\u3067\u3059\u3002 i = 0 i = 1 i = 2 i = 3 i = 4 loop\u306f\u7121\u4e8b\u306b\u7d42\u4e86\u3057\u307e\u3057\u305f \u3053\u306e\u3088\u3046\u306b\u30eb\u30fc\u30d7\u306e\u5f8c\u306b\u7e4b\u3052\u305felse\u306f\u3001\u30eb\u30fc\u30d7\u304c\u6b63\u5e38\u7d42\u4e86\u3057\u305f\u3068\u304d\u306e\u307f\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002\u9006\u306b\u8a00\u3046\u3068\u3001break\u3084return\u3067\u30eb\u30fc\u30d7\u3092\u629c\u3051\u305f\u308a\u3001\u4f8b\u5916\u3092\u767a\u751f\u3057\u305f\u308a\u3057\u305f\u3068\u304d\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002 \u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30eb\u30fc\u30d7\u306e\u9014\u4e2d\u3067break\u3059\u308b\u3068\u3001 fo\u2026","blog_title":"minus9d's diary","author_url":"https://blog.hatena.ne.jp/minus9d/","provider_url":"https://hatena.blog","version":"1.0","categories":["python"],"blog_url":"https://minus9d.hatenablog.com/","width":"100%","url":"https://minus9d.hatenablog.com/entry/2015/01/10/223110","author_name":"minus9d","provider_name":"Hatena Blog","title":"Python\u306e\u30eb\u30fc\u30d7\u306felse\u3092\u6301\u3066\u308b","image_url":null,"type":"rich","published":"2015-01-10 22:31:10","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fminus9d.hatenablog.com%2Fentry%2F2015%2F01%2F10%2F223110\" title=\"Python\u306e\u30eb\u30fc\u30d7\u306felse\u3092\u6301\u3066\u308b - minus9d&#39;s diary\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190"}