{"id":5809,"date":"2016-04-25T12:15:46","date_gmt":"2016-04-25T03:15:46","guid":{"rendered":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=5809"},"modified":"2016-04-25T12:15:46","modified_gmt":"2016-04-25T03:15:46","slug":"python%e3%81%ae%e7%bd%a0","status":"publish","type":"post","link":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/?p=5809","title":{"rendered":"Python\u306e\u7f60"},"content":{"rendered":"<p>&#12414;&#12354;&#65292;&#32771;&#12360;&#12390;&#12415;&#12428;&#12400;&#24403;&#12383;&#12426;&#21069;&#12394;&#12398;&#12391;&#12377;&#12364;&#65292;C&#12398;&#65292;<\/p>\n<pre>for ( i=0; i&lt;10; i++) {\n    \u306a\u3093\u3068\u304b\u304b\u3093\u3068\u304b;\n}<\/pre>\n<p>&#12399;&#65292;Python&#12391;&#12399;&#65292;<\/p>\n<pre>for i in range(0,10):\n    \u306a\u3093\u3068\u304b\u304b\u3093\u3068\u304b<\/pre>\n<p>&#12395;&#32622;&#12365;&#25563;&#12431;&#12426;&#12414;&#12377;&#65294;<\/p>\n<p>&#12383;&#12384;&#12375;&#65292;i&#12398;&#26368;&#32066;&#20516;&#12434;&#21033;&#29992;&#12377;&#12427;&#22580;&#21512;&#65292;C&#12398;&#20363;&#12391;&#12399;&#65292;i == 10 &#12395;&#12394;&#12387;&#12390;&#12356;&#12427;&#12398;&#12395;&#23550;&#12375;&#12390;&#65292;Python&#12398;&#20363;&#12391;&#12399;&#65292;i == 9 &#12391;&#12377;&#65294;<\/p>\n<p>for &#12523;&#12540;&#12503;&#12398;&#20013;&#12391;&#26465;&#20214;&#12395;&#12424;&#12387;&#12390;&#12523;&#12540;&#12503;&#12434;&#25244;&#12369;&#20986;&#12377;&#24037;&#22827;&#12434;&#12375;&#12383;&#22580;&#21512;&#65292;&#25244;&#12369;&#20986;&#12373;&#12394;&#12356;&#12414;&#12414;&#12523;&#12540;&#12503;&#12434;&#23436;&#20102;&#12375;&#12383;&#26178;&#65292;i&#12398;&#20516;&#12364;&#30064;&#12394;&#12427;&#12431;&#12369;&#12391;&#12377;&#65294;<\/p>\n<p>&#12371;&#12428;&#12434;&#36991;&#12369;&#12427;&#12395;&#12399;&#65292;<\/p>\n<pre>i = 0\nwhile i &lt; 10:\n    \u306a\u3093\u3068\u304b\n    \u6761\u4ef6\u306b\u3088\u3063\u3066\u5206\u5c90\n    \u304b\u3093\u3068\u304b\n    i += 1<\/pre>\n<p>&#12392;&#12375;&#12394;&#12356;&#12392;&#12356;&#12369;&#12414;&#12379;&#12435;&#65294;<\/p>\n<p>&#20182;&#12398;&#20154;&#12364;&#26360;&#12356;&#12383;C&#12398;&#12477;&#12540;&#12473;&#12434;python&#12395;&#12467;&#12531;&#12496;&#12540;&#12488;&#12377;&#12427;&#12424;&#12358;&#12394;&#26178;&#12395;&#12399;&#27880;&#24847;&#12364;&#24517;&#35201;&#12391;&#12377;&#65294;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u307e\u3042\uff0c\u8003\u3048\u3066\u307f\u308c\u3070\u5f53\u305f\u308a\u524d\u306a\u306e\u3067\u3059\u304c\uff0cC\u306e\uff0c for ( i=0; i&lt;10; i++) { \u306a\u3093\u3068\u304b\u304b\u3093\u3068\u304b; } \u306f\uff0cPython\u3067\u306f\uff0c for i in range(0,10): \u306a\u3093\u3068\u304b\u304b\u3093\u3068\u304b \u306b\u7f6e\u304d\u63db\u308f\u308a\u307e\u3059\uff0e \u305f\u3060\u3057\uff0ci\u306e\u6700\u7d42\u5024\u3092\u5229\u7528\u3059\u308b\u5834\u5408\uff0cC\u306e\u4f8b\u3067\u306f\uff0ci == 10 \u306b\u306a\u3063\u3066\u3044\u308b\u306e\u306b\u5bfe\u3057\u3066\uff0cPython\u306e\u4f8b\u3067\u306f\uff0ci == 9 \u3067\u3059\uff0e for \u30eb\u30fc\u30d7\u306e\u4e2d\u3067\u6761\u4ef6\u306b\u3088\u3063\u3066\u30eb\u30fc\u30d7\u3092\u629c\u3051\u51fa\u3059\u5de5\u592b\u3092\u3057\u305f\u5834\u5408\uff0c\u629c\u3051\u51fa\u3055\u306a\u3044\u307e\u307e\u30eb\u30fc\u30d7\u3092\u5b8c\u4e86\u3057\u305f\u6642\uff0ci\u306e\u5024\u304c\u7570\u306a\u308b\u308f\u3051\u3067\u3059\uff0e \u3053\u308c\u3092\u907f\u3051\u308b\u306b\u306f\uff0c i = 0 while i &lt; 10: \u306a\u3093\u3068\u304b \u6761\u4ef6\u306b\u3088\u3063\u3066\u5206\u5c90 \u304b\u3093\u3068\u304b i += 1 \u3068\u3057\u306a\u3044\u3068\u3044\u3051\u307e\u305b\u3093\uff0e \u4ed6\u306e\u4eba\u304c\u66f8\u3044\u305fC\u306e\u30bd\u30fc\u30b9\u3092python\u306b\u30b3\u30f3\u30d0\u30fc\u30c8\u3059\u308b\u3088\u3046\u306a\u6642\u306b\u306f\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\uff0e<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_daextam_enable_autolinks":"","footnotes":""},"categories":[3],"tags":[120,187,357,467],"class_list":["post-5809","post","type-post","status-publish","format-standard","hentry","category-computer","tag-c","tag-for","tag-python","tag-while"],"publishpress_future_action":{"enabled":false,"date":"2026-06-02 06:07:09","action":"change-status","newStatus":"draft","terms":[],"taxonomy":"category","extraData":[]},"publishpress_future_workflow_manual_trigger":{"enabledWorkflows":[]},"_links":{"self":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/5809","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5809"}],"version-history":[{"count":0,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=\/wp\/v2\/posts\/5809\/revisions"}],"wp:attachment":[{"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5809"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5809"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/je1sgh.mydns.jp\/je1sghblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5809"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}