{"id":581,"date":"2018-08-10T17:27:02","date_gmt":"2018-08-10T08:27:02","guid":{"rendered":"https:\/\/python-introduction.com\/?p=581"},"modified":"2018-08-10T17:27:02","modified_gmt":"2018-08-10T08:27:02","slug":"%e3%80%90python%e3%80%91%e6%96%87%e5%ad%97%e5%88%97%e3%82%92%e7%b5%90%e5%90%88%e3%83%bb%e6%8a%bd%e5%87%ba%e3%81%97%e3%81%9f%e3%82%8a%e7%b9%b0%e3%82%8a%e8%bf%94%e3%81%97%e3%81%9f%e3%82%8a%e3%81%99","status":"publish","type":"post","link":"https:\/\/python-introduction.com\/?p=581","title":{"rendered":"\u3010Python\u3011\u6587\u5b57\u5217\u3092\u7d50\u5408\u30fb\u62bd\u51fa\u3057\u305f\u308a\u7e70\u308a\u8fd4\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<div class=\"boxstyle01\">\n<p class=\"check08\"><span class=\"yellowbg\">\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u306b\u304a\u3044\u3066<\/span><\/p>\n<p>\u30fb\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd5<br \/>\n\u30fb\u6587\u5b57\u5217\u304b\u3089\u72d9\u3063\u305f\u6587\u5b57\u5217\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5<br \/>\n\u30fb\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\u65b9\u6cd5<\/p><\/div>\n<p>\u306a\u3069\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Python\"><span class=\"toc_number toc_depth_1\">1<\/span> \u3010Python\u3011\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd5<\/a><\/li><li><a href=\"#Python-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u3010Python\u3011\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\u65b9\u6cd5<\/a><\/li><li><a href=\"#Python-3\"><span class=\"toc_number toc_depth_1\">3<\/span> \u3010Python\u3011\u72d9\u3063\u305f\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5<\/a><\/li><\/ul><\/div>\n<h2><span id=\"Python\">\u3010Python\u3011\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd5<\/span><\/h2>\n<p>Python\u3067\u306f\u6f14\u7b97\u5b50\u306e\u4e00\u3064\u3001+\u3092\u4f7f\u3046\u3053\u3068\u3067<br \/>\n\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u300c\u6f14\u7b97\u5b50\u3063\u3066\u4f55\uff1f\u300d\u3068\u3044\u3046\u65b9\u3001<br \/>\n\u6f14\u7b97\u5b50\u3068\u3044\u3063\u3066\u3082\u3044\u308d\u3044\u308d\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307e\u3059\u306e\u3067<br \/>\n\u6c17\u306b\u306a\u308b\u65b9\u306f\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u3067\u4f7f\u3046\u30fb\u4ee3\u5165\u6f14\u7b97\u5b50\u30fb\u6bd4\u8f03\u6f14\u7b97\u5b50\u30fb\u8ad6\u7406\u6f14\u7b97\u5b50\u30fb\u4e09\u9805\u6f14\u7b97\u5b50\u306b\u3064\u3044\u3066\u307e\u3068\u3081\u3066\u307f\u307e\u3057\u305f\u3002\u4e00\u822c\u7684\u306a\u8a08\u7b97\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3010Python\u5165\u9580\u3011\u4ee3\u5165\u6f14\u7b97\u5b50\u307e\u3068\u3081\u4ee3\u5165\u6f14\u7b97\u5b50\u306f\u300e\uff1d\uff08\u30a4\u30b3\u30fc\u30eb\uff09\u300f\u3092\u4f7f\u3063\u3066\u5024\u3092\u4ee3...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=536\">\u3010Python\u3011\u6f14\u7b97\u5b50\u307e\u3068\u3081<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u305d\u308c\u304b\u3089\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u4ee5\u5916\u306b\u3082<br \/>\n\u3044\u308d\u3093\u306a\u3044\u3058\u308a\u65b9\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u4e0a\u3067\u7c21\u5358\u306b\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u52a0\u3048\u3066\u3001\u6587\u5b57\u5217\u3092\u7f6e\u63db\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u306d\u3002\u3082\u3057\u6587\u5b57\u5217\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u306f\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3082\u3042\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u21d2python\u7279\u6709\u306e\u6587\u5b57\u5217\u64cd\u4f5c\u307e\u3068\u3081\u21d2\u3010python...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=481\">\u3010Python\u3011\u7c21\u5358\u306b\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b3\u3064\u306e\u30e1\u30bd\u30c3\u30c9\u3068\u7f6e\u63db\u306b\u3064\u3044\u3066\u89e3\u8aac<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fpython\u4e0a\u3067\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u305f\u308a\u62bd\u51fa\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u64cd\u4f5c\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3010python\u5165\u9580\u3011\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u305f\u3068\u3048\u3070\u3001\u300c\u304a\u3070\u3042\u3061\u3083\u3093\u3001\u5927\u597d\u304d\u3060\u3088\u300d\u3067\u300e\u3070\u300f...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=296\">\u3010python\u5165\u9580\u3011\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u305f\u308a\u62bd\u51fa\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u305d\u308c\u3067\u306f\u672c\u984c\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<p class=\"check08\">\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd51\uff0e\uff0b\u3092\u4f7f\u3046<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hanabitaikai810.jpg\" alt=\"\u6587\u5b57\u5217\u306e\u7d50\u5408\" width=\"620\" height=\"421\" class=\"alignnone size-full wp-image-590\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hanabitaikai810.jpg 620w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hanabitaikai810-300x204.jpg 300w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/p>\n<p>\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u305f\u3044\u306a\u3089\u300e\uff0b\u300f\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\n\u4f8b\u984c1\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c1\r\n\r\na = '\u592a\u9f13\u8179\u306e'\r\nb = '\u30b1\u30cb\u30a2\u4eba\u3068'\r\nc = '\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f'\r\nd = a + b + c\r\nprint(d)<\/pre>\n<p>\u4f8b\u984c1\u3067\u306f<br \/>\n\u5909\u6570a\u306b\u300e<span class=\"yellowbg\">\u592a\u9f13\u8179\u306e<\/span>\u300f\u3092\u4ee3\u5165\u3057<br \/>\n\u5909\u6570b\u306b\u300e<span class=\"yellowbg\">\u30b1\u30cb\u30a2\u4eba\u3068<\/span>\u300f\u3092\u4ee3\u5165\u3057<br \/>\n\u5909\u6570c\u306b\u300e<span class=\"yellowbg\">\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f<\/span>\u300f\u4ee3\u5165\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3057\u3066<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = a + b + c<\/pre>\n<p>\u3068\u3001a + b + c<br \/>\n\u3067\u3001\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u3066\u3044\u307e\u3059\u3002<br \/>\na\u306b\u306f\u300e\u592a\u9f13\u8179\u306e\u300f\u3057\u304b\u3042\u308a\u307e\u305b\u3093\u304c<br \/>\n+\u3068b\u3084c\u3068\u7d50\u5408\u3055\u305b\u308b\u3053\u3068\u3067<br \/>\n\u300e\u592a\u9f13\u8179\u306e\u30b1\u30cb\u30a2\u4eba\u3068\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f<br \/>\n\u3068\u3044\u3046\u6587\u7ae0\u306b\u306a\u308b\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u305d\u3057\u3066\u300e\u592a\u9f13\u8179\u306e\u30b1\u30cb\u30a2\u4eba\u3068\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f\u3068\u3044\u3046<br \/>\n\u7d50\u5408\u3055\u308c\u305f\u6587\u5b57\u5217\u3092\u5909\u6570d\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5909\u6570d\u3092print\u6587\u3067\u8868\u793a\u3055\u305b\u305f\u7d50\u679c\u3001<br \/>\n\u79c1\u305f\u3061\u306e\u76ee\u306b\u898b\u3048\u308b\u5f62\u3067<br \/>\n\u300e\u592a\u9f13\u8179\u306e\u30b1\u30cb\u30a2\u4eba\u3068\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f<br \/>\n\u3068\u3044\u3046\u6587\u7ae0\u304c\u8868\u793a\u3055\u308c\u305f\u308f\u3051\u3067\u3059\u306d\u3002<\/p>\n<p>\u4f8b\u984c1\u3092\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hensuuu810.jpg\" alt=\"\u6587\u5b57\u5217\u306e\u7d50\u5408\" width=\"331\" height=\"183\" class=\"alignnone size-full wp-image-586\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hensuuu810.jpg 331w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/hensuuu810-300x166.jpg 300w\" sizes=\"(max-width: 331px) 100vw, 331px\" \/><\/p>\n<p>\u300e\u592a\u9f13\u8179\u306e\u30b1\u30cb\u30a2\u4eba\u3068\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f<br \/>\n\u3068\u3044\u3046\u6587\u7ae0\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p class=\"check08\">\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd52\uff0ejoin\u3092\u4f7f\u3046<\/p>\n<p>+\u3092\u4f7f\u308f\u306a\u304f\u3066\u3082<br \/>\njoin\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001<br \/>\n\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u4f8b\u984c2\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c2\r\n\r\nc = ['\u592a\u9f13\u8179\u306e','\u30b1\u30cb\u30a2\u4eba\u3068','\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f']\r\nd = ''.join(c)\r\nprint(d)<\/pre>\n<p>\u4f8b\u984c2\u3092\u5b9f\u884c\u3059\u308b\u3068\u4f8b\u984c1\u3068\u540c\u69d8\u306b<br \/>\n\u300e\u592a\u9f13\u8179\u306e\u30b1\u30cb\u30a2\u4eba\u3068\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/joinsan810.jpg\" alt=\"join\" width=\"335\" height=\"191\" class=\"alignnone size-full wp-image-588\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/joinsan810.jpg 335w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/joinsan810-300x171.jpg 300w\" sizes=\"(max-width: 335px) 100vw, 335px\" \/><\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">c = ['\u592a\u9f13\u8179\u306e','\u30b1\u30cb\u30a2\u4eba\u3068','\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f']<\/pre>\n<p>\u3067c\u306e\u4e2d\u306b\u30ea\u30b9\u30c8\u3068\u3057\u3066<br \/>\n&#8216;\u592a\u9f13\u8179\u306e&#8217;,&#8217;\u30b1\u30cb\u30a2\u4eba\u3068&#8217;,&#8217;\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f&#8217;<br \/>\n\u3092\u5165\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = ''.join(c)<\/pre>\n<p>\u3067\u3001\u5909\u6570c\u306b\u5165\u3063\u305f\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u3067\u3001join\u306e\u524d\u306b\u3042\u308b\u300e&#8221;.\u300f\u3067\u3059\u304c<br \/>\n\u3053\u308c\u3067\u3001\u5358\u7d14\u306b\u5909\u6570c\u306b\u5165\u3063\u305f\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u300e&#8221;.\u300f\u3092\u3088\u304f\u7406\u89e3\u3059\u308b\u305f\u3081\u306b<br \/>\n\u4f8b\u984c3\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c3\r\nc = ['\u592a\u9f13\u8179\u306e','\u30b1\u30cb\u30a2\u4eba\u3068','\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f']\r\nd = ','.join(c)\r\n\r\nprint(d)<\/pre>\n<p>\u3067\u5b9f\u884c\u3059\u308b\u3068<br \/>\n\u300e\u592a\u9f13\u8179\u306e,\u30b1\u30cb\u30a2\u4eba\u3068,\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f\u300f\u3068<br \/>\n\u305d\u308c\u305e\u308c\u306b\u300e,\u300f\u304c\u3064\u304f\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306f<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = ','.join(c)<\/pre>\n<p>\u306e\u300e&#8217;,&#8217;\u300f\u304c\u95a2\u4fc2\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><span class=\"yellowbg\">\u300e&#8217;,&#8217;\u300f\u306b\u3088\u3063\u3066\u305d\u308c\u305e\u308c\u306e\u6587\u5b57\u5217<br \/>\n&#8216;\u592a\u9f13\u8179\u306e&#8217;,&#8217;\u30b1\u30cb\u30a2\u4eba\u3068&#8217;,&#8217;\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f&#8217;<br \/>\n\u306b\u30ab\u30f3\u30de\uff08,\uff09\u3064\u304d\u3067\u7d50\u5408\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308b<\/span>\u3093\u3067\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c4\r\n\r\nc = ['\u592a\u9f13\u8179\u306e','\u30b1\u30cb\u30a2\u4eba\u3068','\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f']\r\nd = '\\n'.join(c)\r\n\r\nprint(d)<\/pre>\n<p>\u4f8b\u984c4\u3067\u306fjoin(c)\u306e\u524d\u304c&#8217;\\n&#8217;\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n&#8216;\\n&#8217;\u306fPython\u3067\u306f\u6539\u884c\u3059\u308b\u3068\u3044\u3046\u610f\u5473\u3067\u3059\u3002<\/p>\n<p>\u306a\u306e\u3067\u5b9f\u884c\u3059\u308b\u3068<\/p>\n<p>\u592a\u9f13\u8179\u306e<br \/>\n\u30b1\u30cb\u30a2\u4eba\u3068<br \/>\n\u82b1\u706b\u5927\u4f1a\u306b\u884c\u3063\u305f<\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><span id=\"Python-2\">\u3010Python\u3011\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\u65b9\u6cd5<\/span><\/h2>\n<p>\u300e*\u300f\u3092\u4f7f\u3046\u3053\u3068\u3067\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305d\u308c\u3067\u306f\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c5\r\n\r\nc = '\u3068\u3063\u3066\u3082'\r\nd = c * 5\r\n\r\nprint(d)<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n\u300e\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u3068\u3063\u3066\u3082\u300f<br \/>\n\u3068\u3001\u300e\u3068\u3063\u3066\u3082\u300f\u304c5\u56de\u7e70\u308a\u8fd4\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u3067*\u3068\u6570\u5b57\u306b\u3088\u3063\u3066<br \/>\n\u305d\u306e\u6570\u5b57\u5206\u3060\u3051\u6587\u5b57\u5217\u304c\u7e70\u308a\u8fd4\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = c * 5<\/pre>\n<p>\u3068\u5909\u6570c\u306b\u4ee3\u5165\u3055\u308c\u305f\u300e\u3068\u3063\u3066\u3082\u300f<br \/>\n\u304c5\u56de\u7e70\u308a\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tottemokuikae810.jpg\" alt=\"\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\" width=\"361\" height=\"178\" class=\"alignnone size-full wp-image-594\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tottemokuikae810.jpg 361w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/tottemokuikae810-300x148.jpg 300w\" sizes=\"(max-width: 361px) 100vw, 361px\" \/><\/p>\n<p>\u3067\u306f\u3082\u3046\u4e00\u3064\u4f8b\u984c\u3092\u3084\u3063\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c6\r\n\r\nc = '\u3068\u3063\u3066\u3082'\r\ne = '\u5927\u597d\u304d\u3088'\r\nd = c * 5 + e\r\nprint(d)<\/pre>\n<p>\u5148\u307b\u3069\u306e5\u56de\u7e70\u308a\u8fd4\u3059\u300e\u3068\u3063\u3066\u3082\u300f\u306e\u6b21\u306b<br \/>\n\u5909\u6570e\u306b\u5165\u3063\u3066\u3044\u308b\u300e\u5927\u597d\u304d\u3088\u300f\u3092\u300e+\u300f\u3092\u4f7f\u3063\u3066<br \/>\n\u7d50\u5408\u3055\u305b\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u5fdc\u7528\u7de8\u3067\u3059\u306d\u3002<\/p>\n<p>\u5b9f\u884c\u3059\u308b\u3068<br \/>\n<img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/kurikaesujikkou810.jpg\" alt=\"\u7e70\u308a\u8fd4\u3057\" width=\"424\" height=\"202\" class=\"alignnone size-full wp-image-595\" srcset=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/kurikaesujikkou810.jpg 424w, https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/kurikaesujikkou810-300x143.jpg 300w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/p>\n<p>\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2><span id=\"Python-3\">\u3010Python\u3011\u72d9\u3063\u305f\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5<\/span><\/h2>\n<p>\u72d9\u3063\u305f\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u306f<br \/>\n\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u3082\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"linkcard\"><table border=\"1\" cellspacing=\"0\" cellpadding=\"4\"><tbody><\/tr><tr><td>\u3053\u306e\u8a18\u4e8b\u3067\u306fpython\u4e0a\u3067\u4f7f\u7528\u3059\u308b\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u305f\u308a\u62bd\u51fa\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002\u6587\u5b57\u5217\u64cd\u4f5c\u306e\u57fa\u672c\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3067\u8a73\u3057\u304f\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u3010python\u5165\u9580\u3011\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u3066\u8868\u793a\u3059\u308b\u65b9\u6cd5\u305f\u3068\u3048\u3070\u3001\u300c\u304a\u3070\u3042\u3061\u3083\u3093\u3001\u5927\u597d\u304d\u3060\u3088\u300d\u3067\u300e\u3070\u300f...<br><a class=\"no_icon\" href=\"https:\/\/python-introduction.com\/?p=296\">\u3010python\u5165\u9580\u3011\u6587\u5b57\u5217\u3092\u5206\u5272\u3057\u305f\u308a\u62bd\u51fa\u3057\u305f\u308a\u3059\u308b\u65b9\u6cd5<\/a> - python\u5165\u9580\u30c9\u30c3\u30c8\u30b3\u30e0<\/td><\/tr><\/tbody><\/table><\/div>\n<p>\u72d9\u3063\u305f\u6587\u5b57\u5217\u3092\u62bd\u51fa\u3059\u308b\u306a\u3089<br \/>\n[]\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u4f8b\u984c\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c7\r\n\r\nc = '\u89aa\u306e\u4e03\u5149\u308a\u533b\u5e2b'\r\nd = c[2]\r\n\r\nprint(d)<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u300e\u4e03\u300f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = c[2]<\/pre>\n<p>\u3067\u3001[2]\u3068\u3042\u308a\u307e\u3059\u306d\u3002<br \/>\n\u3053\u308c\u306f\u89aa\u306e\u4e03\u5149\u308a\u533b\u5e2b\u306e\u4e00\u756a\u5de6\u306e\u6587\u5b57\u300e\u89aa\u300f\u30920\u3068\u30ab\u30a6\u30f3\u30c8\u3057\u3066<br \/>\n0\uff08\u89aa\uff09,1(\u306e\uff09,2(\u4e03\uff09,3\uff08\u5149\uff09\u30fb\u30fb\u30fb<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u30012\u306e\u4e03\u304c\u62bd\u51fa\u3055\u308c\u3001<br \/>\nprint\u6587\u3067\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/python-introduction.com\/wp-content\/uploads\/2018\/08\/oyanonanahikak810.jpg\" alt=\"\u6587\u5b57\u5217\u306e\u62bd\u51fa\" width=\"300\" height=\"180\" class=\"alignnone size-full wp-image-597\" \/><\/p>\n<p>\u3082\u3046\u4e00\u3064\u4f8b\u984c\u3092\u3084\u3063\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c8\r\n\r\nc = '\u89aa\u306e\u4e03\u5149\u308a\u533b\u5e2b'\r\nd = c[-2]\r\n\r\nprint(d)<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u300e\u533b\u300f\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = c[-2]<\/pre>\n<p>\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001<\/p>\n<p>-1\uff08\u5e2b\uff09\u3001-2(\u533b\uff09\u3001-3(\u308a\uff09\u30fb\u30fb\u30fb<br \/>\n\u3068\u3001\u30de\u30a4\u30ca\u30b9\u304c\u3064\u304f\u3068<br \/>\n\u4e00\u756a\u5f8c\u308d\u306e\u6587\u5b57\u304b\u3089\u30ab\u30a6\u30f3\u30c8\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\"># \u4f8b\u984c9\r\n\r\nc = '\u89aa\u306e\u4e03\u5149\u308a\u533b\u5e2b'\r\nd = c[0:4]\r\n\r\nprint(d)<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u300e\u89aa\u306e\u4e03\u5149\u308a\u300f\u3068<br \/>\n\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\/chushutuu810.jpg\" alt=\"\u6587\u5b57\u5217\u306e\u62bd\u51fa\" width=\"233\" height=\"180\" class=\"alignnone size-full wp-image-598\" \/><\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">d = c[0:4]<\/pre>\n<p>\u3067\u3001[0:4]\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u306d\u3002<br \/>\n<span class=\"yellowbg\">\u3053\u308c\u306f0\uff08\u89aa\uff09\u304b\u30894\uff08\u308a\uff09\u307e\u3067<br \/>\n\u62bd\u51fa\u3057\u306a\u3055\u3044\u3068\u3044\u3046\u610f\u5473<\/span>\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u6587\u5b57\u5217\u306e\u7d50\u5408\u3001\u62bd\u51fa\u3001\u7e70\u308a\u8fd4\u3057\u306b\u3064\u3044\u3066\u306e<br \/>\n\u89e3\u8aac\u3092\u7d42\u308f\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u3053\u306e\u8a18\u4e8b\u3067\u306fPython\u306b\u304a\u3044\u3066 \u30fb\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd5 \u30fb\u6587\u5b57\u5217\u304b\u3089\u72d9\u3063\u305f\u6587\u5b57\u5217\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u65b9\u6cd5 \u30fb\u6587\u5b57\u5217\u3092\u7e70\u308a\u8fd4\u3059\u65b9\u6cd5 \u306a\u3069\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 \u76ee\u6b211 \u3010Python\u3011\u6587\u5b57\u5217\u3092\u7d50\u5408\u3055\u305b\u308b\u65b9\u6cd52 \u3010Pyth [&hellip;]","protected":false},"author":1,"featured_media":582,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,21],"tags":[3,27,25,42],"_links":{"self":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/581"}],"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=581"}],"version-history":[{"count":9,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/posts\/581\/revisions\/599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=\/wp\/v2\/media\/582"}],"wp:attachment":[{"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/python-introduction.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}