{"id":1073,"date":"2018-08-29T16:14:21","date_gmt":"2018-08-29T07:14:21","guid":{"rendered":"https:\/\/python-introduction.com\/?p=1073"},"modified":"2018-12-14T11:06:55","modified_gmt":"2018-12-14T02:06:55","slug":"%e3%80%90python%e3%80%91%e3%82%bf%e3%83%97%e3%83%ab%e3%81%a8%e3%81%af%ef%bc%9f%e3%83%aa%e3%82%b9%e3%83%88%e3%81%a8%e3%82%bf%e3%83%97%e3%83%ab%e3%81%ae%e9%81%95%e3%81%84%e3%81%ab%e3%81%a4%e3%81%84","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=1073","title":{"rendered":"\u3010Python\u3011\u30bf\u30d7\u30eb\u3068\u306f\uff1f\u30ea\u30b9\u30c8\u3068\u30bf\u30d7\u30eb\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac"},"content":{"rendered":"<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30bf\u30d7\u30eb\u3068\u306f\u4f55\u304b\u3001<br \/>\n\u305d\u308c\u3068\u30bf\u30d7\u30eb\u3068\u30ea\u30b9\u30c8\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u5225\u8a18\u4e8b\u3067\u30bf\u30d7\u30eb\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067<br \/>\n\u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=658\" target=\"blank\">\u3010Python\u3011\u30bf\u30d7\u30eb\u3092\u4f7f\u30463\u3064\u306e\u30e1\u30ea\u30c3\u30c8<\/a><\/p>\n<h2>\u3010Python\u3011\u30ea\u30b9\u30c8\u3068\u30bf\u30d7\u30eb\u306e\u9055\u3044<\/h2>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/psokondansei826.jpg\" alt=\"\u30bf\u30d7\u30eb\u3068\u306f\" width=\"620\" height=\"414\" class=\"alignnone size-full wp-image-1044\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/psokondansei826.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/psokondansei826-300x200.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p class=\"check08\">\u30ea\u30b9\u30c8\u3068\u30bf\u30d7\u30eb\u306e\u9055\u30441\uff0e\u304b\u3063\u3053\u306e\u304f\u304f\u308a\u65b9<\/p>\n<p>\u30bf\u30d7\u30eb\u306f\u30ea\u30b9\u30c8\u3068\u3059\u3054\u304f\u4f3c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u3067\u3059\u304c\u3001\u9055\u3044\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30b9\u30c8\u306e\u5834\u5408\u306b\u306f\u30d6\u30e9\u30f3\u30b1\u30c3\u30c8\u306e\u30ab\u30ae\u30ab\u30c3\u30b3\u3067\u304f\u304f\u308a\u307e\u3059\u3002<br \/>\n\u30bf\u30d7\u30eb\u306e\u5834\u5408\u306b\u306f\u30d1\u30ec\u30f3\u30c6\u30a3\u30b9\u306e\u4e38\u304b\u3063\u3053()\u3067\u304f\u304f\u308a\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u984c1\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c1\r\n\r\nx = [1,2,3,4,5] # []\u3067\u304f\u304f\u308b\u306e\u304c\u30ea\u30b9\u30c8\r\ny = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb\r\n\r\nprint(x)\r\nprint(y)<\/pre>\n<p>\u4f8b\u984c1\u3067<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x = [1,2,3,4,5] # []\u3067\u304f\u304f\u308b\u306e\u304c\u30ea\u30b9\u30c8<\/pre>\n<p>\u304c\u30ea\u30b9\u30c8\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">y = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb<\/pre>\n<p>\u304c\u30bf\u30d7\u30eb\u3067\u3059\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p>[1, 2, 3, 4, 5]<br \/>\n(6, 7, 8, 9, 10)<br \/>\n\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/risutotapuru828.jpg\" alt=\"\u30ea\u30b9\u30c8\u3068\u30bf\u30d7\u30eb\" width=\"351\" height=\"182\" class=\"alignnone size-full wp-image-1075\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/risutotapuru828.jpg 351w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/risutotapuru828-300x156.jpg 300w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/p>\n<p>\u30bf\u30a4\u30d7\u3092\u8abf\u3079\u3066\u307f\u308b\u3068<br \/>\n\u3082\u3063\u3068\u306f\u3063\u304d\u308a\u3068\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c2\r\n\r\nx = [1,2,3,4,5] # []\u3067\u304f\u304f\u308b\u306e\u304c\u30ea\u30b9\u30c8\r\ny = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb\r\n\r\nprint(type(x))\r\nprint(type(y))<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n<class 'list'><br \/>\n<class 'tuple'><br \/>\n\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/taiputapuru828.jpg\" alt=\"\u30bf\u30d7\u30eb\u3068\u3044\u3046\u30bf\u30a4\u30d7\" width=\"351\" height=\"182\" class=\"alignnone size-full wp-image-1076\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/taiputapuru828.jpg 351w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/taiputapuru828-300x156.jpg 300w\" sizes=\"(max-width: 351px) 100vw, 351px\" \/><\/p>\n<p class=\"check08\">\u30ea\u30b9\u30c8\u3068\u30bf\u30d7\u30eb\u306e\u9055\u30442\uff0e\u65b0\u3057\u3044\u5024\u306e\u4ee3\u5165\u304c\u3067\u304d\u308b\u304b\u3069\u3046\u304b<\/p>\n<p>\u307e\u305a\u4f8b\u984c3\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c3\r\n\r\nx = [1,2,3,4,5] # []\u3067\u304f\u304f\u308b\u306e\u304c\u30ea\u30b9\u30c8\r\ny = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb\r\n\r\nx[0] = 100 #\u30ea\u30b9\u30c8\u306e\u6700\u521d\u306b100\u3092\u52a0\u3048\u308b\r\n\r\n\r\nprint(x)\r\nprint(y)<\/pre>\n<p>\u4f8b\u984c3\u3067\u306f\u30ea\u30b9\u30c8\u304c\u5165\u3063\u3066\u3044\u308b\u5909\u6570x\u306e\u6700\u521d\u306b100\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">x[0] = 100 #\u30ea\u30b9\u30c8\u306e\u6700\u521d\u306b100\u3092\u52a0\u3048\u308b<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n[100, 2, 3, 4, 5]<br \/>\n(6, 7, 8, 9, 10)<br \/>\n\u3068\u30ea\u30b9\u30c8\u306e\u6700\u521d\u304c100\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3067\u306f\u4f8b\u984c4\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c4\r\n\r\nx = [1,2,3,4,5] # []\u3067\u304f\u304f\u308b\u306e\u304c\u30ea\u30b9\u30c8\r\ny = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb\r\n\r\ny[0] = 100 #\u30bf\u30d7\u30eb\u306e\u6700\u521d\u306b100\u3092\u52a0\u3048\u308b\r\n\r\n\r\nprint(x)\r\nprint(y)<\/pre>\n<p>\u4f8b\u984c4\u3067\u306f\u30bf\u30d7\u30eb\u306e\u6700\u521d\u306b100\u3092\u52a0\u3048\u3088\u3046\u3068\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">y[0] = 100 #\u30bf\u30d7\u30eb\u306e\u6700\u521d\u306b100\u3092\u52a0\u3048\u308b<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tapuruera828.jpg\" alt=\"\u30bf\u30d7\u30eb\u30a8\u30e9\u30fc\" width=\"572\" height=\"387\" class=\"alignnone size-full wp-image-1078\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tapuruera828.jpg 572w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tapuruera828-300x203.jpg 300w\" sizes=\"(max-width: 572px) 100vw, 572px\" \/><\/p>\n<p>\u30bf\u30d7\u30eb\u306f\u65b0\u3057\u3044\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u305f\u3060\u3001\u30bf\u30d7\u30eb\u306e\u5834\u5408\u306b\u306f\u4f8b\u984c5\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">#\u4f8b\u984c5\r\n\r\ny = (6,7,8,9,10) # ()\u3067\u304f\u304f\u308b\u306e\u304c\u30bf\u30d7\u30eb\r\n\r\nprint(y[-1])\r\nprint(y[1:3])<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n10<br \/>\n(7, 8)<br \/>\n\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">print(y[-1])<\/pre>\n<p>\u306f\u3001\u30bf\u30d7\u30eb\u306e\u4e00\u756a\u53f3\u5074\u306e\u5024\u3092\u8868\u793a\u3055\u305b\u308b\u610f\u5473\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u306a\u306e\u306710\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">print(y[1:3])<\/pre>\n<p>\u306f\u5de6\u304b\u30892\u756a\u76ee\u306e7\u304b\u3089\u5de6\u304b\u30893\u756a\u76ee\u306e8\u307e\u3067\u5207\u308a\u53d6\u3063\u3066\u8868\u793a\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<br \/>\n\u5b9f\u884c\u3059\u308b\u3068(7, 8)\u3068\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3088\u304f\u308f\u304b\u3089\u306a\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6587\u5b57\u5217\u306b\u3064\u3044\u3066\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001\u6570\u5024\u3067\u3082\u540c\u3058\u3067\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=296\" target=\"blank\">\u3010python\u5165\u9580\u3011\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u305f\u308a\u62bd\u51fa\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n<h2>\u3010Python\u3011\u30bf\u30d7\u30eb\u3068\u306f\uff1f\u3069\u3093\u306a\u30b1\u30fc\u30b9\u3067\u4f7f\u3046\uff1f<\/h2>\n<p>\u30bf\u30d7\u30eb\u3068\u306f\u30ea\u30b9\u30c8\u3067\u3042\u3063\u305f\u308a\u8f9e\u66f8\u307f\u305f\u3044\u306b<br \/>\n\u8907\u6570\u306e\u8981\u7d20\u3092()\u3067\u304f\u304f\u3063\u3066\u7ba1\u7406\u3059\u308b\u30c7\u30fc\u30bf\u578b\u306e\u4e00\u7a2e\u3067\u3059\u3002<\/p>\n<p>\u8f9e\u66f8\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u21d2<a href=\"https:\/\/python-introduction.com\/?p=676\" target=\"blank\">\u3010Python\u3011\u8f9e\u66f8\u306b\u767b\u5834\u3059\u308b\u30ad\u30fc\u3068\u306f\uff1f\u30ad\u30fc\u3092\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac<\/a><\/p>\n<p>\u30bf\u30d7\u30eb\u306f\u5148\u307b\u3069\u3082\u8a00\u3044\u307e\u3057\u305f\u304c<br \/>\n\u65b0\u3057\u3044\u5024\u3092\u4ee3\u5165\u3059\u308b\u3053\u3068\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u5024\u3092\u5165\u308c\u305f\u3089\u8aad\u307f\u8fbc\u3080\u3088\u3046\u306a\u30b1\u30fc\u30b9\u3067<br \/>\n\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u64cd\u4f5c\u3068\u3044\u3046\u3088\u308a\u3082\u5024\u3092\u4ee3\u5165\u3057\u3066<br \/>\n\u5f8c\u3005\u3001\u30c7\u30fc\u30bf\u306e\u4e2d\u8eab\u3092\u66f8\u304d\u63db\u3048\u3089\u308c\u305f\u304f\u306a\u3044\u5834\u5408<br \/>\n\u3064\u307e\u308a\u3001\u8aad\u307f\u8fbc\u307f\u5c02\u7528\u3067\u4f7f\u3046\u30b1\u30fc\u30b9\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u30bf\u30d7\u30eb\u306b\u3064\u3044\u3066\u306e\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u30bf\u30d7\u30eb\u3068\u306f\u4f55\u304b\u3001 \u305d\u308c\u3068\u30bf\u30d7\u30eb\u3068\u30ea\u30b9\u30c8\u306e\u9055\u3044\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u5225\u8a18\u4e8b\u3067\u30bf\u30d7\u30eb\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067 \u305c\u3072\u3054\u89a7\u304f\u3060\u3055\u3044\u3002 \u21d2\u3010Python\u3011\u30bf\u30d7\u30eb\u3092\u4f7f\u30463\u3064\u306e\u30e1\u30ea\u30c3\u30c8 \u3010Python [&hellip;]","protected":false},"author":1,"featured_media":1067,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,43],"tags":[3,48,104,44],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1073"}],"collection":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1073"}],"version-history":[{"count":8,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions"}],"predecessor-version":[{"id":1328,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/1073\/revisions\/1328"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/1067"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1073"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1073"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1073"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}