{"id":11074,"date":"2015-05-31T20:31:07","date_gmt":"2015-05-31T11:31:07","guid":{"rendered":"http:\/\/programminglanguage7.com\/?p=11074"},"modified":"2015-05-31T20:31:07","modified_gmt":"2015-05-31T11:31:07","slug":"post-11074","status":"publish","type":"post","link":"https:\/\/programminglanguage7.com\/?p=11074","title":{"rendered":"break\u306b\u3064\u3044\u3066\u77e5\u308d\u3046"},"content":{"rendered":"<p><span style=\"font-size: 14pt;\">\u3053\u306e\u7ae0\u3067\u306fbreak\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">break\u306ffor\u3084while\u306a\u3069\u3068\u4e00\u7dd2\u306b\u4f7f\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">for\u3084while\u306e\u4e2d\u3067\u300c\u3042\u308b\u6761\u4ef6\u4e0b\u306b\u9054\u3057\u305f\u6642\u300d\u306bbreak\u3092\u4f7f\u3063\u3066for\u3084while\u3092\u629c\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3064\u307e\u308a\u3001\u73fe\u5728\u884c\u3063\u3066\u3044\u308b\u7e70\u308a\u8fd4\u3057\u4f5c\u696d\u3092\u5f37\u5236\u7684\u306b\u7d42\u4e86\u3055\u305b\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4f8b\u3092\u307f\u3066\u307f\u307e\u3057\u3087\u3046\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91717.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11075\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91717-300x236.jpg\" alt=\"9\" width=\"300\" height=\"236\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91717-300x236.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91717.jpg 486w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">for\u6587\u306e\u30d6\u30ed\u30c3\u30af\u306e\u4e2d\u306bif\u6587\u304c\u5165\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306eif\u6587\u306e\u610f\u5473\u306f\u300c\u3082\u3057\u3001i\u304c4\u306b\u306a\u3063\u305f\u3089 for\u6587\u3092\u629c\u3051\u307e\u3059\u3088\u300d\u3068\u8a00\u3046\u610f\u5473\u3067\u3059\u3002break\u306f\u3053\u306e\u3088\u3046\u306b\u4e00\u9023\u306e\u6d41\u308c\u3092\u5f37\u5236\u7684\u306b\u4e2d\u6b62\u3059\u308b\u305f\u3081\u306b\u4f7f\u308f\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3067\u306f\u4e00\u9023\u306e\u6d41\u308c\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2460\u521d\u3081\u306b1\u304ci\u306b\u4ee3\u5165\u3055\u308c\u3001if\u6587\u3067\u306e \u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002\u3082\u3057i\u304c4\u306b\u306a\u3063\u305f\u3089\u3001for\u6587\u3092\u629c\u3051\u307e\u3059\u304c\u3001i\u306f1\u3067false\u306a\u306e\u3067 if\u6587\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2461<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11076\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\" alt=\"9\" width=\"288\" height=\"35\" \/><\/a>\u304c\u5b9f\u884c\u3055\u308c\u3001\u300c1\u3064\u306e\u30ea\u30f3\u30b4\u300d\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2462 for\u6587\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u30012\u304ci\u306b\u4ee3\u5165\u3055\u308c if\u6587\u3067\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3082\u3057i\u304c4\u306b\u306a\u3063\u305f\u3089\u3001for\u6587\u3092\u629c\u3051\u307e\u3059\u304c\u3001i\u306f2\u3067false\u306a\u306e\u3067if\u6587\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2463<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11076\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\" alt=\"9\" width=\"288\" height=\"35\" \/><\/a>\u304c\u5b9f\u884c\u3055\u308c\u3001\u300c2\u3064\u306e\u30ea\u30f3\u30b4\u300d\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2464 for\u6587\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u30013\u304ci\u306b\u4ee3\u5165\u3055\u308c if\u6587\u3067\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3082\u3057i\u304c4\u306b\u306a\u3063\u305f\u3089\u3001for\u6587\u3092\u629c\u3051\u307e\u3059\u304c i\u306f3\u3067false\u306a\u306e\u3067if\u6587\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2465<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11076\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\" alt=\"9\" width=\"288\" height=\"35\" \/><\/a>\u304c\u5b9f\u884c\u3055\u308c\u3001\u300c3\u3064\u306e\u30ea\u30f3\u30b4\u300d\u3092\u51fa\u529b\u3057\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2466 for\u6587\u306e\u5148\u982d\u306b\u623b\u3063\u3066\u30014\u304ci\u306b\u4ee3\u5165\u3055\u308c if\u6587\u3067\u306e\u5224\u5b9a\u306b\u5165\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3082\u3057i\u304c4\u306b\u306a\u3063\u305f\u3089\u3001for\u6587\u3092\u629c\u3051\u307e\u3059\u304c i\u306f4\u3067true\u306a\u306e\u3067if\u6587\u304c\u5b9f\u884c\u3055\u308c\u3066break\u304c\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u3053\u3067for\u6587\u3092\u629c\u3051\u308b\u306e\u3067\u3001\u3053\u306e\u5f8c\u306e<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11076\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91718.jpg\" alt=\"9\" width=\"288\" height=\"35\" \/><\/a>\u306f\u5b9f\u884c\u3055\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u2467 break\u3067 for\u6587\u3092\u629c\u3051\u305f\u306e\u3067\u3001<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91719.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11077\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91719-300x33.jpg\" alt=\"9\" width=\"300\" height=\"33\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91719-300x33.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91719.jpg 329w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a>\u3092\u5b9f\u884c\u3057\u3066\u7d42\u4e86\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u30a4\u30f3\u30c7\u30f3\u30c8\u306b\u3064\u3044\u3066\u306f\u4ee5\u524d\u8aac\u660e\u3057\u307e\u3057\u305f\u304c\u3001\u3082\u3046\u4e00\u5ea6\u5fa9\u7fd2\u3057\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91720.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11078\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91720-300x177.jpg\" alt=\"9\" width=\"300\" height=\"177\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91720-300x177.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91720.jpg 494w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u4e0a\u306e\u4f8b\u306f3\u3064\u306e\u6587\u7ae0\u306b\u5206\u304b\u308c\u3066\u3044\u307e\u3059\u306e\u3067<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u308c\u305e\u308c\u306e\u5148\u982d\u3092\u5de6\u7aef\u306b\u5408\u308f\u305b\u3066\u304f\u3060\u3055\u3044\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91721.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11079\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91721-300x81.jpg\" alt=\"9\" width=\"300\" height=\"81\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91721-300x81.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91721.jpg 401w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91722.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11080\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91722-300x170.jpg\" alt=\"9\" width=\"300\" height=\"170\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91722-300x170.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91722.jpg 505w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91723.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11081\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91723-300x244.jpg\" alt=\"9\" width=\"300\" height=\"244\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91723-300x244.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91723.jpg 454w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91724.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11082\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91724-300x173.jpg\" alt=\"9\" width=\"300\" height=\"173\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91724-300x173.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91724.jpg 498w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><br \/>\n<span style=\"font-size: 14pt;\">\u6b21\u306fwhile\u6587\u306e\u4e2d\u3067\u3001break\u3092\u4f7f\u7528\u3059\u308b\u4f8b\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91725.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11083\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91725-300x287.jpg\" alt=\"9\" width=\"300\" height=\"287\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91725-300x287.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91725.jpg 463w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span> <span style=\"font-size: 14pt;\">\u3053\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30e6\u30fc\u30b6\u30fc\u304c\u5165\u529b\u3057\u305f\u3082\u306e\u306b\u5bfe\u3057\u3066\u8db3\u3057\u7b97\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u300cwhile True:\u300d\u306e\u3088\u3046\u306b\u6761\u4ef6\u5f0f\u3092True\u306b\u3059\u308b\u3068\u7121\u9650\u306b\u7e70\u308a\u8fd4\u3057\u3092\u884c\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e\u7121\u9650\u306e\u7e70\u308a\u8fd4\u3057\u306fbreak\u3067\u629c\u3051\u306a\u3044\u3068\u6587\u5b57\u901a\u308a\u7121\u9650\u306b\u7e70\u308a\u8fd4\u3057\u3092\u884c\u3044\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">raw_input\u95a2\u6570\u306f\u30e6\u30fc\u30b6\u30fc\u306b\u30ad\u30fc\u30dc\u30fc\u30c9\u304b\u3089\u306e\u5165\u529b\u3092\u4fc3\u3059\u308f\u3051\u3067\u3059\u304c\u3001\u4f8b\u3048\u6570\u5024\u3092\u5165\u529b\u3057\u305f\u3068\u3057\u3066\u3082\u3001raw_input\u95a2\u6570\u306f\u6587\u5b57\u5217\u3068\u3057\u3066\u5165\u529b\u3055\u308c\u308b\u4ed5\u69d8\u306a\u306e\u3067\u3001\u6587\u5b57\u5217\u3092\u6570\u5024\u306b\u5909\u63db\u3057\u3066\u3042\u3052\u306a\u3044\u3068\u8a08\u7b97\u3059\u308b\u3053\u3068\u306f\u51fa\u6765\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u305d\u3053\u3067\u3001\u305d\u306e\u6587\u5b57\u5217\u3092int\u95a2\u6570\u3067\u30ad\u30e3\u30b9\u30c8\u3057\u3066\u6570\u5024\u306b\u3057\u3066\u3042\u3052\u308b\u3053\u3068\u3067\u8a08\u7b97\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">if\u6587\u306e\u6761\u4ef6\u5f0f\u306ea\u304c1\u306b\u306a\u308a\u307e\u3057\u305f\u3089\u3001while\u6587\u3092\u629c\u3051\u308b\u4ed5\u69d8\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u306e\u3067\u6700\u5f8c\u306b1\u3092\u5165\u529b\u3057\u305f\u3089\u8a08\u7b97\u304c\u7d42\u308f\u308a\u306b\u306a\u308a\u307e\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u6700\u5f8c\u306b1\u304c\u5165\u529b\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u8a08\u7b97\u306f\u7d42\u308f\u308a\u3067\u3059\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u3053\u306e1\u306f\u5408\u8a08\u306b\u306f\u542b\u307e\u308c\u307e\u305b\u3093\u3002<\/span><br \/>\n<span style=\"font-size: 14pt;\">\u7d50\u679c\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<a href=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91726.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-11084\" src=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91726-300x87.jpg\" alt=\"9\" width=\"300\" height=\"87\" srcset=\"https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91726-300x87.jpg 300w, https:\/\/programminglanguage7.com\/wp-content\/uploads\/2015\/05\/91726.jpg 382w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u306e\u7ae0\u3067\u306fbreak\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002 break\u306ffor\u3084while\u306a\u3069\u3068\u4e00\u7dd2\u306b\u4f7f\u3044\u307e\u3059\u3002 for\u3084while\u306e\u4e2d\u3067\u300c\u3042\u308b\u6761\u4ef6\u4e0b\u306b\u9054\u3057\u305f\u6642\u300d\u306bbreak\u3092\u4f7f\u3063\u3066for\u3084while\u3092\u629c\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u3064\u307e\u308a\u3001\u73fe\u5728 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[634],"tags":[218,166,657],"class_list":["post-11074","post","type-post","status-publish","format-standard","hentry","category-python","tag-break","tag-for","tag-raw_input"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/11074"}],"collection":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=11074"}],"version-history":[{"count":2,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/11074\/revisions"}],"predecessor-version":[{"id":11086,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=\/wp\/v2\/posts\/11074\/revisions\/11086"}],"wp:attachment":[{"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11074"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11074"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/programminglanguage7.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11074"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}