{"id":93,"date":"2015-11-20T03:55:28","date_gmt":"2015-11-20T03:55:28","guid":{"rendered":"http:\/\/sungjin.noip.me\/?p=93"},"modified":"2015-11-20T03:55:28","modified_gmt":"2015-11-20T03:55:28","slug":"python%ed%8c%8c%ec%9d%b4%ec%8d%ac%ec%97%90%ec%84%9c%ec%9d%98-for-else-%eb%ac%b8","status":"publish","type":"post","link":"http:\/\/mukgee.com\/?p=93","title":{"rendered":"[python]\ud30c\uc774\uc36c\uc5d0\uc11c\uc758 for &#8230; else \ubb38"},"content":{"rendered":"<p>\ud30c\uc774\uc36c\uc5d0\uc11c\ub294 \ub2e4\ub978 \uc5b8\uc5b4\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 for\ubb38 \uae30\ub2a5 \uc678\uc5d0 \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud55c\ub2e4<\/p>\n<p>\uadf8 \uc911 for .. else \ubb38\uc5d0 \ub300\ud574 \uc18c\uac1c\ud574\ubcf8\ub2e4<\/p>\n<p>\uae30\ubcf8\uc801\uc73c\ub85c for\ubb38 \uc5d0 break \uac00 \ud3ec\ud568 \ub418\uc5b4 \uc788\uc744\ub54c \uc0ac\uc6a9\uac00\ub2a5\ud55c\ub370<\/p>\n<p>for\ubb38\uc744 \uc21c\ud68c \ud558\ub358 \uc911 break\ub97c \ub9cc\ub098\uba74 for\ubb38\uc744 \ube60\uc838\ub098\uc624\ub294\uac74 \uc77c\ubc18\uc801\uc778 \uc5b8\uc5b4\uc640 \uac19\uc9c0\ub9cc<\/p>\n<p><span style=\"color: #ff0000;\"><strong>break \ubb38\uc744 \ub9cc\ub098\uc9c0 \uc54a\uc558\ub2e4\uba74 for\ubb38 \uc885\ub8cc \uc774\ud6c4 else \ubb38\uc774 \uc2e4\ud589<\/strong><\/span>\ub41c\ub2e4.<\/p>\n<pre class=\"lang:python decode:true\">for a in range(0,5):\n    print a\n    if a == 3:\n        break;\nelse :\n    print \"else statement is called\"<\/pre>\n<p>\uc704 \uc758 \ucf54\ub4dc\uc758 \uacb0\uacfc\ub294<\/p>\n<p>0<br \/>\n1<br \/>\n2<br \/>\n3<\/p>\n<p>\uc774\ub2e4.<\/p>\n<p>\uadf8\ub807\ub2e4\uba74 break\ubb38\uc744 \ub9cc\ub098\uc9c0 \uc54a\ub294 for\ubb38\uc740 \uc5b4\ub5bb\uae4c?<\/p>\n<pre class=\"lang:js decode:true\">for a in range(0,5):\n    print a\n    if a == 6:\n        break;\nelse :\n    print \"else statement is called\"<\/pre>\n<p>\ucf54\ub4dc \uc2e4\ud589 \uacb0\uacfc\ub294<\/p>\n<p>0<br \/>\n1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\nelse statement is called<\/p>\n<p>\uc774\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\uc704\uc758 \uacbd\uc6b0 \ucc98\ub7fc <strong>for else \ubb38\uc744 \uc0ac\uc6a9\ud55c\ub2e4\uba74 flag \uac19\uc740 \ubcc0\uc218\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uc544\ub3c4 \ub418\uc11c \ucf54\ub4dc\uac00 \ud6e8\uc52c \uae54\ub054<\/strong>\ud574 \uc9c4\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud30c\uc774\uc36c\uc5d0\uc11c\ub294 \ub2e4\ub978 \uc5b8\uc5b4\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 for\ubb38 \uae30\ub2a5 \uc678\uc5d0 \ub2e4\uc591\ud55c \uae30\ub2a5\ub4e4\uc744 \uc81c\uacf5\ud55c\ub2e4 \uadf8 \uc911 for .. else \ubb38\uc5d0 \ub300\ud574 \uc18c\uac1c\ud574\ubcf8\ub2e4 \uae30\ubcf8\uc801\uc73c\ub85c for\ubb38 \uc5d0 break \uac00 \ud3ec\ud568 \ub418\uc5b4&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[29],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/mukgee.com\/index.php?rest_route=\/wp\/v2\/posts\/93"}],"collection":[{"href":"http:\/\/mukgee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/mukgee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/mukgee.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/mukgee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":0,"href":"http:\/\/mukgee.com\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"wp:attachment":[{"href":"http:\/\/mukgee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/mukgee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/mukgee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}