{"id":9762,"date":"2011-07-09T22:43:00","date_gmt":"2011-07-09T22:43:00","guid":{"rendered":"http:\/\/melotopia.net\/b\/?p=9762"},"modified":"2011-07-09T22:43:00","modified_gmt":"2011-07-09T22:43:00","slug":"%ed%8c%8c%ec%9d%b4%ec%8d%ac%ec%97%90%ec%84%9c-range-%ed%95%a8%ec%88%98","status":"publish","type":"post","link":"http:\/\/melotopia.net\/b\/?p=9762","title":{"rendered":"\ud30c\uc774\uc36c\uc5d0\uc11c range \ud568\uc218"},"content":{"rendered":"<div class=\"desc\">\n        \uc5b4\ub5a4 \uc5b8\uc5b4\ub4e0\uc9c0\uac04\uc5d0 \uc5b4\ub5a4 \ubcc0\uc218\ub97c \uc815\ud574\uc9c4 \ubc94\uc704 \ub0b4\uc5d0\uc11c \ud55c\ubc88\uc529 \uc801\uc6a9\uc2dc\ucf1c\uac00\uba74\uc11c \ubc18\ubcf5 \uc2e4\ud589\ud558\ub294 \uad6c\ubb38\uc740 \ud544\uc694\ud558\ub2e4. \ud30c\uc774\uc36c\uc5d0\uc11c\ub294 for \uad6c\ubb38\uc73c\ub85c \uad6c\ud604\ud558\uace0 \uc815\ud574\uc9c4 \ubc94\uc704\ub97c \ub9ac\uc2a4\ud2b8\ub85c \uc8fc\ub3c4\ub85d \ub418\uc5b4 \uc788\ub2e4.<\/p>\n<p>        \uc608\ub97c \ub4e4\uc5b4, C\uc5b8\uc5b4\uc5d0\uc11c for(i=0;i<10;i++)\uc73c\ub85c \uc8fc\uc5b4\uc9c4 \ubc18\ubcf5\ubb38\uc774\ub77c\uba74 \ud30c\uc774\uc36c\uc5d0\uc11c\ub294 for i in range(0, 10) \uc73c\ub85c \uc4f8 \uc218 \uc788\ub2e4. \uc774\ub54c \uc8fc\uc758\ud574\uc57c \ud560 \uc810\uc740 range\uac00 \ud568\uc218\ub77c\ub294 \ubd80\ubd84\uc774\ub2e4. range(a, b, c)\ub294 a\ubd80\ud130 b\uae4c\uc9c0 c\uce78\uc529 \ub2ec\ub9ac\ub294 \ub9ac\uc2a4\ud2b8\ub97c \ub418\ub3cc\ub824 \uc900\ub2e4. c=1\uc740 \uae30\ubcf8 \uc0ac\ud56d\uc774\ub2e4.\n        <sup class=\"footnote\"><br \/>\n<a href=\"#footnote_2593_1\" id=\"footnote_link_2593_1\" onmouseout=\"tistoryFootnote.hide(2593,1)\" onmouseover=\"tistoryFootnote.show(this,2593,1)\" style=\"color:#f9650d;font-family:Verdana,Sans-serif\"><br \/>\n<span style=\"display:none\"><br \/>\n           [\uac01\uc8fc:<br \/>\n          <\/span><br \/>\n          1<br \/>\n          <span style=\"display:none\"><br \/>\n           ]<br \/>\n          <\/span><br \/>\n<\/a><br \/>\n<\/sup><br \/>\n<br \/>\n<a href=\"http:\/\/docs.python.org\/release\/1.5.1p1\/tut\/range.html\" target=\"_blank\" title=\"[http:\/\/docs.python.org\/release\/1.5.1p1\/tut\/range.html]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/docs.python.org\/release\/1.5.1p1\/tut\/range.html<br \/>\n        <\/a><\/p>\n<p>        \uadf8\ub7ec\ub098, \ub098\uc5d0\uac8c \ud544\uc694\ud55c \uac83\uc740 for(i=0.0;i<1.0;i+=0.1)\uacfc \uac19\uc740 \uad6c\ubb38\uc774\uc5c8\uace0 \ud30c\uc774\uc36c\uc5d0\uc11c for i in range(0.0, 1.0, 0.1)\uc740 \ub098\uc5d0\uac8c \uc88c\uc808\uc744 \uc548\uaca8\uc8fc\uc5c8\ub2e4. range\ub294 int\uc5d0\uc11c\ub9cc \uc798 \uc791\ub3d9\ud558\ub294 \ud568\uc218\uc600\uae30 \ub54c\ubb38\uc774\ub2e4. \uadf8\ub798\uc11c \uc77c\ub2e8\uc740 \ub2e4\uc74c\uacfc \uac19\uc740 \ucf54\ub4dc\ub97c \uc791\uc131\ud574\uc11c \uc37c\ub2e4.\n        \n\n\n\n\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(254, 222, 199); background-color: rgb(254, 222, 199); padding: 10px;\">\n         x = 0.0<br \/>\n         <br \/>\n         for i in range(0, 10):<br \/>\n         <br \/>\n         x=x+0.1<br \/>\n         <br \/>\n         function(x)\n        <\/div>\n<p>\n        \uae09\ud55c\ub300\ub85c \uc774\ub807\uac8c \uc4f0\uae34 \ud588\ub294\ub370, \uc774\uac74 for\uad6c\ubb38\uc774\uc9c0\ub9cc while\uac19\ub2e4. \uc774\ub7f4\uac70\uba74 \uadf8\ub0e5 while\uc744 \uc4f0\ub294\uac8c \ub0ab\uc9c0 \uc2f6\uc740 \ub290\ub08c? \uadf8\ub798\uc11c \ub2e4\ub978 \ubc29\ubc95\ub4e4\uc744 \ucc3e\uc544\ubcf4\uc558\ub2e4. \uae30\ubcf8\uc801\uc73c\ub85c\ub294, \ud30c\uc774\uc36c\uc758 for\ubb38\uc740 \uc8fc\uc5b4\uc9c4 \ub9ac\uc2a4\ud2b8 \uc548\uc758 \ubcc0\uc218\ub4e4\uc744 \ud558\ub098\uc529 \uc21c\uc11c\ub300\ub85c \uc801\uc6a9\ud55c\ub2e4. \uadf8\ub7fc \ub0b4\uac00 \uc6d0\ud558\ub294 \ub300\ub85c 0.1\uc529 \uc99d\uac00\ud558\ub294 \ub9ac\uc2a4\ud2b8\ub97c \ub9cc\ub4e4\uc5b4\uc11c \uc8fc\uba74 \ub41c\ub2e4. \uc608\ub97c \ub4e4\uc5b4<br \/>\n        <\/p>\n<div class=\"txc-textbox\" style=\"border-style: solid; border-width: 1px; border-color: rgb(231, 253, 181); background-color: rgb(231, 253, 181); padding: 10px;\">\n         for i in [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]:<br \/>\n         <br \/>\n         function(x)\n        <\/div>\n<p>\n        \uc774\ub807\uac8c \uc4f0\ub294 \uac83\uc740 \uc758\ub3c4\ud55c \ub300\ub85c \uc791\ub3d9\ud558\ub294 \uad6c\ubb38\uc774\ub2e4. \ubb3c\ub860 \uc774\uac74 10\uac1c\ub2c8\uae4c \uc190\uc73c\ub85c \uc37c\uc9c0\ub9cc 100\ub9cc\uac1c\ucbe4 \ub418\uba74 \uc190\uc73c\ub85c \uc4f0\ub294\uac74 \ucef4\ud4e8\ud130 \ud3b8\ud558\uc790\uace0 \uc0ac\ub78c\uc774 \uace0\uc0dd\ud558\ub294 \ube44\uadf9\uc744 \ucd08\ub798\ud558\ubbc0\ub85c \uc880 \ub354 \uba4b\uc9c4 \ubc29\ubc95\uc744 \ucc3e\uc544\uc57c \ud55c\ub2e4.<\/p>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/477486\/python-decimal-range-step-value\" target=\"_blank\" title=\"[http:\/\/stackoverflow.com\/questions\/477486\/python-decimal-range-step-value]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/stackoverflow.com\/questions\/477486\/python-decimal-range-step-value<br \/>\n        <\/a><br \/>\n<br \/>\n<a href=\"http:\/\/code.activestate.com\/recipes\/66472\/\" target=\"_blank\" title=\"[http:\/\/code.activestate.com\/recipes\/66472\/]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/code.activestate.com\/recipes\/66472\/<br \/>\n        <\/a><br \/>\n<br \/>\n        \uba87\uac00\uc9c0 \ubc29\ubc95\uc744 \ucc3e\uc558\ub294\ub370, numpy\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 arange \ud568\uc218\ub97c \uc4f0\ub294 \ubc29\ubc95\uc774 \uc788\uace0, frange\ud568\uc218\ub97c \uc0c8\ub85c \uc815\uc758\ud558\ub294 \ubc29\ubc95\uc774 \uc788\ub2e4. \uc5b4\ub5bb\ub4e0, \uc704\uc5d0 \uc4f4 0.0\ubd80\ud130 1.0\uae4c\uc9c0\uc758 \ub9ac\uc2a4\ud2b8\ub97c \uc81c\uacf5\ud558\uae30\ub9cc \ud558\uba74 \ub418\uace0, \uc5ec\ub7ec \uc0ac\ub78c\ub4e4\uc774 \uc774 \ubb38\uc81c\ub97c \ud574\uacb0\ud558\uace0 \uc788\ub2e4.<\/p>\n<p>        \uadf8\ub7ec\ub2e4 \ubcf4\ub2c8, \ubb38\ub4dd range\ud568\uc218\ub97c \uc624\ubc84\ub85c\ub529\ud558\uba74 \uc548\ub418\ub294\uac74\uac00? \ud558\ub294 \uc0dd\uac01\uc774 \ub4e4\uc5b4\uc11c \uac80\uc0c9\ud574 \ubcf4\uc558\ub2e4. \ubb3c\ub860 \uc774\ub7f0 \uc0dd\uac01\uc744 \ub098\ub9cc \ud558\ub294\uac74 \uc544\ub2c8\uc5c8\ub2e4.<br \/>\n        <br \/>\n<a href=\"http:\/\/ironboundsoftware.com\/blog\/2007\/05\/29\/a-shortfall-of-python-no-function-overloading\/\" target=\"_blank\" title=\"[http:\/\/ironboundsoftware.com\/blog\/2007\/05\/29\/a-shortfall-of-python-no-function-overloading\/]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/ironboundsoftware.com\/blog\/2007\/05\/29\/a-shortfall-of-python-no-function-overloading\/<br \/>\n        <\/a><br \/>\n<br \/>\n<a href=\"http:\/\/www.artima.com\/weblogs\/viewpost.jsp?thread=155514\" target=\"_blank\" title=\"[http:\/\/www.artima.com\/weblogs\/viewpost.jsp?thread=155514]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n         http:\/\/www.artima.com\/weblogs\/viewpost.jsp?thread=155514<br \/>\n        <\/a><br \/>\n<br \/>\n        \uadc0\ub3c4 \ubc18 \ub85c\uc378\ub3c4 \uadf8\ub7f0 \uc0dd\uac01\uc744 \ud588\uace0, 2006\ub144\uc5d0 \ub300\ucda9 \uad6c\ud604\uc744 \ud574\ubd24\ub2e4\uace0 \ud558\ub2c8 \ud30c\uc774\uc36c3\uc5d0\uc11c\ub294 \uc798 \ub418\uc9c0 \uc54a\uc744\uae4c \uc2f6\uc5c8\ub2e4. \uadf8\ub7ec\ub098 \uadf8\ub807\uac8c \ub418\uc9c0 \uc54a\uc740 \uac83 \uac19\ub2e4.<br \/>\n        <a href=\"http:\/\/%E3%85%8D\" target=\"_blank\" title=\"[http:\/\/\u314d]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n<\/a><br \/>\n<span style=\"text-decoration: underline;\"><br \/>\n<br \/>\n<a href=\"http:\/\/openlook.org:625\/blog\/2008\/12\/04\/python3\/\" target=\"_blank\" title=\"[http:\/\/openlook.org:625\/blog\/2008\/12\/04\/python3\/]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n          http:\/\/openlook.org:625\/blog\/2008\/12\/04\/python3\/<br \/>\n         <\/a><br \/>\n<br \/>\n<a href=\"http:\/\/kldp.org\/node\/123275#comment-555572\" target=\"_blank\" title=\"[http:\/\/kldp.org\/node\/123275#comment-555572]\ub85c \uc774\ub3d9\ud569\ub2c8\ub2e4.\"><br \/>\n          http:\/\/kldp.org\/node\/123275#comment-555572<br \/>\n         <\/a><br \/>\n<br \/>\n<\/span><br \/>\n<span style=\"text-decoration: underline;\"><br \/>\n<br \/>\n<\/span><br \/>\n        \uc544\ubb34\ud2bc, \uc77c\ub2e8 range \ub300\uc2e0\uc5d0 \uc0c8\ub85c\uc6b4 \ub2e4\ub978 \ud568\uc218\ub85c \uc815\uc758\ud574\uc11c \uc0ac\uc6a9\ud574\uc57c \ud55c\ub2e4\ub294 \uc810\uc744 \uc54c\uac8c \ub418\uc5c8\ub2e4.<br \/>\n        <span style=\"text-decoration: underline;\"><br \/>\n<br \/>\n<\/span><\/p>\n<div class=\"footnotes\">\n<ol class=\"footnotes\">\n<li id=\"footnote_2593_1\">\n           \uc880 \ub354 \uc815\ud655\ud788 \uc4f0\uc790\uba74, for i in range(0, 10)\uc774\ub791 \uac19\uc740 C\uc5b8\uc5b4 \uad6c\ubb38\uc740 for(i=0;i<=10;i++)\uc774\ub2e4.\n           <a href=\"#footnote_link_2593_1\"><br \/>\n            [\ubcf8\ubb38\uc73c\ub85c]<br \/>\n           <\/a>\n<\/li>\n<\/ol>\n<\/div>\n<p><script type=\"text\/javascript\">\n         tistoryFootnote.add(2593,1,\"\\uc880 \\ub354 \\uc815\\ud655\\ud788 \\uc4f0\\uc790\\uba74, for i in range(0, 10)\\uc774\\ub791 \\uac19\\uc740 C\\uc5b8\\uc5b4 \\uad6c\\ubb38\\uc740 for(i=0;i<=10;i++)\\uc774\\ub2e4. \");\n        <\/script><\/p>\n<div style=\"width:100%;margin-top:30px;clear:both;height:30px\">\n<div style=\"width:31px;float:left;\">\n<a href=\"\/toolbar\/popup\/abuseReport\/?entryId=2593\" onclick=\"window.open(this.href, 'tistoryThisBlogPopup', 'width=550, height=510, toolbar=no, menubar=no, status=no, scrollbars=no'); return false;\"><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" alt=\"\uc2e0\uace0\" src=\"https:\/\/i0.wp.com\/t1.daumcdn.net\/tistory_admin\/static\/ico\/ico_spam_report.png\" style=\"border:0\"\/><br \/>\n<\/a>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\uc5b4\ub5a4 \uc5b8\uc5b4\ub4e0\uc9c0\uac04\uc5d0 \uc5b4\ub5a4 \ubcc0\uc218\ub97c \uc815\ud574\uc9c4 \ubc94\uc704 \ub0b4\uc5d0\uc11c \ud55c\ubc88\uc529 \uc801\uc6a9\uc2dc\ucf1c\uac00\uba74\uc11c \ubc18\ubcf5 \uc2e4\ud589\ud558\ub294 \uad6c\ubb38\uc740 \ud544\uc694\ud558\ub2e4. \ud30c\uc774\uc36c\uc5d0\uc11c\ub294 for \uad6c\ubb38\uc73c\ub85c \uad6c\ud604\ud558\uace0 \uc815\ud574\uc9c4 \ubc94\uc704\ub97c \ub9ac\uc2a4\ud2b8\ub85c \uc8fc\ub3c4\ub85d \ub418\uc5b4 \uc788\ub2e4. \uc608\ub97c \ub4e4\uc5b4, C\uc5b8\uc5b4\uc5d0\uc11c for(i=0;i<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[],"class_list":["post-9762","post","type-post","status-publish","format-standard","hentry","category-12"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8o6gA-2xs","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9762","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9762"}],"version-history":[{"count":0,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=\/wp\/v2\/posts\/9762\/revisions"}],"wp:attachment":[{"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9762"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9762"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/melotopia.net\/b\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9762"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}