{"id":126,"date":"2017-01-12T16:23:51","date_gmt":"2017-01-12T07:23:51","guid":{"rendered":"http:\/\/www.python.ambitious-engineer.com\/?p=126"},"modified":"2019-05-06T19:13:37","modified_gmt":"2019-05-06T10:13:37","slug":"%e3%82%b7%e3%83%bc%e3%82%b1%e3%83%b3%e3%82%b9%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/126","title":{"rendered":"\u30b7\u30fc\u30b1\u30f3\u30b9"},"content":{"rendered":"<p>\u3053\u3053\u304b\u3089\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u547c\u3070\u308c\u308b\u69d8\u3005\u306a\u7a2e\u985e\u306e\u5909\u6570\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b7\u30fc\u30b1\u30f3\u30b9<\/h2>\n<p>\u3053\u308c\u307e\u3067\u5b66\u7fd2\u3057\u305f\u6570\u5024\u3084\u771f\u7406\u5024\u306a\u3069\u306f\u5909\u6570\u306b\u305f\u30601\u3064\u306e\u5024\u3092\u683c\u7d0d\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001<a href=\"https:\/\/www.python.ambitious-engineer.com\/archives\/128\" title=\"\u5909\u6570\u306e\u57fa\u672c\">\u5909\u6570\u306e\u57fa\u672c<\/a>\u3067\u89e3\u8aac\u3057\u305f\u3068\u304a\u308a\u3001Python\u306b\u306f\u8907\u6570\u306e\u5024\u3092\u683c\u7d0d\u3059\u308b\u578b\u304c\u3044\u304f\u3064\u304b\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u304b\u3089\u5b66\u7fd2\u3059\u308b\u30b7\u30fc\u30b1\u30f3\u30b9\u3082\u8907\u6570\u306e\u5024\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u306f<strong>\u8907\u6570\u306e\u5024<\/strong>\u3092<strong>\u9806\u756a<\/strong>\u306b\u4e26\u3079\u305f\u3082\u306e\u3092\u3072\u3068\u304b\u305f\u307e\u308a\u3068\u3057\u3066\u683c\u7d0d\u3059\u308b\u305f\u3081\u306e\u578b\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u7b2c1\u56de\u304b\u3089\u7b2c10\u56de\u307e\u3067\u306e\u30c6\u30b9\u30c8\u306e\u70b9\u6570\u30c7\u30fc\u30bf\u304c\u3042\u308a\u3001\u9806\u756a\u306b\u51fa\u529b\u3059\u308b\u5834\u5408\u3092\u8003\u3048\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b10\u500b\u306e\u914d\u5217\u3092\u7528\u610f\u3059\u308b\u3053\u3068\u306f\u5c11\u3005\u9762\u5012\u81ed\u305d\u3046\u3067\u3059\u306d\u3002\u307e\u305f\u3001\u6570\u3092\u8ffd\u52a0\u3059\u308b\u3068\u3055\u3089\u306b\u5927\u5909\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \u30c6\u30b9\u30c8\u306e\u70b9\u6570\r\nnum1 = 97\r\nnum2 = 78\r\nnum3 = 88\r\n# :\r\n# :\r\nnum9 = 92\r\nnum10 = 75\r\n\r\n# \u51fa\u529b\r\nprint(num1)\r\nprint(num2)\r\n# :\r\n# :\r\nprint(num9)\r\nprint(num10)\r\n<\/pre>\n<p>\u305d\u3053\u3067\u30b7\u30fc\u30b1\u30f3\u30b9\u306e\u4e00\u7a2e\u3067\u3042\u308b\u30ea\u30b9\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\n# \u30c6\u30b9\u30c8\u306e\u70b9\u6570\r\nnum_list = [97, 78, 88, 76, 100, 85, 72, 85, 92, 75]\r\n\r\n# \u51fa\u529b\u3059\u308b\r\nfor num in num_list:\r\n    print(num)\r\n<\/pre>\n<p>\u5f8c\u307b\u3069\u8aac\u660e\u3057\u307e\u3059\u304c\u3001for\u6587\u3068\u547c\u3070\u308c\u308b\u30eb\u30fc\u30d7\u3092\u6d3b\u7528\u3057\u3001\u9806\u756a\u306b\u51e6\u7406\u3092\u884c\u3046\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u306b\u306f\u69d8\u3005\u306a\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306a\u30b7\u30fc\u30b1\u30f3\u30b9\u578b\u3068\u3057\u3066\u3001<\/p>\n<ul>\n<li>\u30ea\u30b9\u30c8<\/li>\n<li>\u30bf\u30d7\u30eb<\/li>\n<li>range<\/li>\n<li>\u6587\u5b57\u5217<\/li>\n<\/ul>\n<p>\u304c\u6319\u3052\u3089\u308c\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306b\u5b66\u7fd2\u3059\u308b\u524d\u306b\u3001\u7c21\u5358\u306b\u6982\u8981\u3092\u8aac\u660e\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<h3>\u7528\u8a9e\u306e\u88dc\u8db3<\/h3>\n<p>\u6982\u8981\u306e\u8aac\u660e\u306e\u524d\u306b\u7528\u8a9e\u306e\u88dc\u8db3\u3067\u3059\u3002\u5148\u7a0b\u3001\u30b7\u30fc\u30b1\u30f3\u30b9\u306f\u300c\u8907\u6570\u306e\u5024\u3092\u9806\u756a\u306b\u4e26\u3079\u305f\u3082\u306e\u3092\u3072\u3068\u304b\u305f\u307e\u308a\u3068\u3057\u3066\u300d\u3068\u66f8\u304d\u307e\u3057\u305f\u3002\u8907\u6570\u306e\u5024\u306e\u306a\u304b\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u5024\u3092<strong>\u8981\u7d20<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u307e\u305f\u3001\u8981\u7d20\u306b\u306f\u4f55\u756a\u76ee\u3001\u3068\u3044\u3046\u756a\u53f7\u304c\u3064\u3051\u3089\u308c\u3066\u304a\u308a\u3001\u305d\u306e\u756a\u53f7\u306e\u3053\u3068\u3092\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3001\u82e5\u3057\u304f\u306f\u6dfb\u5b57\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<h3>\u30ea\u30b9\u30c8<\/h3>\n<p>\u30ea\u30b9\u30c8\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u3082\u3063\u3068\u3082\u57fa\u672c\u7684\u304b\u3064\u91cd\u8981\u3068\u3044\u3048\u307e\u3059\u3002\u4e0a\u306e\u30b5\u30f3\u30d7\u30eb\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u307e\u3068\u3081\u3066\u53d6\u308a\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u3001\u307e\u305f\u30c7\u30fc\u30bf\u306e\u8981\u7d20\u3092\u66f8\u304d\u63db\u3048\u305f\u308a\u9806\u5e8f\u3092\u5909\u66f4\u3057\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h3>\u30bf\u30d7\u30eb<\/h3>\n<p>\u30bf\u30d7\u30eb\u306f\u30ea\u30b9\u30c8\u3068\u306f\u7570\u306a\u308a\u3001\u5f8c\u304b\u3089\u5024\u3084\u9806\u5e8f\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u306a\u3044\u30b7\u30fc\u30b1\u30f3\u30b9\u3067\u3059\u3002\u6700\u521d\u306b\u5b9a\u3081\u305f\u5024\u304c\u4fdd\u8a3c\u3055\u308c\u308b\u305f\u3081\u3001\u5b89\u5168\u306b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u884c\u3046\u969b\u306b\u6d3b\u8e8d\u3057\u307e\u3059\u3002\uff08\u30bf\u30d7\u30eb\u306e\u3088\u3046\u306a\u5f8c\u304b\u3089\u5024\u3092\u5909\u66f4\u3067\u304d\u306a\u3044\u6027\u8cea\u306e\u3053\u3068\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb\u3068\u3044\u3044\u307e\u3059\u3002\uff09<\/p>\n<h3>range<\/h3>\n<p>range\u95a2\u6570\u3092\u4f7f\u7528\u3059\u308b\u3068\u5f15\u6570\u3067\u6307\u5b9a\u3057\u305f\u6574\u6570\u306e\u6570\u306e\u8981\u7d20\u3092\u3082\u3063\u305frange\u3068\u547c\u3070\u308c\u308b\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u5f97\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6240\u5b9a\u306e\u56de\u6570\u5206\u30eb\u30fc\u30d7\u3059\u308b\u969b\u306b\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001\u30ea\u30b9\u30c8\u3068\u6bd4\u8f03\u3057\u3066\u30e1\u30e2\u30ea\u306e\u4f7f\u7528\u91cf\u304c\u5c11\u306a\u3044\u306e\u3082\u7279\u5fb4\u306e1\u3064\u3067\u3059\u3002<\/p>\n<h3>\u6587\u5b57\u5217<\/h3>\n<p>\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u3001\u3082\u3057\u304f\u306f\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u304f\u304f\u3063\u305f\u6587\u5b57\u5217\u3092\u5909\u6570\u306b\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext = 'abce'\r\n<\/pre>\n<p>\u3053\u306e\u5909\u6570\u306e\u578b\u3092\u6587\u5b57\u5217\u578b(str)\u3068\u547c\u3073\u307e\u3059\u3002<\/p>\n<p>\u3044\u305a\u308c\u3082\u91cd\u8981\u3067\u3059\u306e\u3067\u3053\u308c\u304b\u3089\u9806\u756a\u306b\u5b66\u7fd2\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3053\u304b\u3089\u306f\u30b7\u30fc\u30b1\u30f3\u30b9\u3068\u547c\u3070\u308c\u308b\u69d8\u3005\u306a\u7a2e\u985e\u306e\u5909\u6570\u306b\u3064\u3044\u3066\u5b66\u7fd2\u3057\u307e\u3059\u3002 \u30b7\u30fc\u30b1\u30f3\u30b9 \u3053\u308c\u307e\u3067\u5b66\u7fd2\u3057\u305f\u6570\u5024\u3084\u771f\u7406\u5024\u306a\u3069\u306f\u5909\u6570\u306b\u305f\u30601\u3064\u306e\u5024\u3092\u683c\u7d0d\u3057\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u5909\u6570\u306e\u57fa\u672c\u3067\u89e3\u8aac\u3057\u305f\u3068\u304a\u308a\u3001Python\u306b\u306f\u8907\u6570\u306e\u5024\u3092\u683c\u7d0d\u3059\u308b\u578b\u304c...<\/p>\n","protected":false},"author":1,"featured_media":3392,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[214,48],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/126"}],"collection":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/comments?post=126"}],"version-history":[{"count":11,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/126\/revisions"}],"predecessor-version":[{"id":3391,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/126\/revisions\/3391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/3392"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}