{"id":3077,"date":"2020-11-29T23:14:49","date_gmt":"2020-11-29T14:14:49","guid":{"rendered":"https:\/\/www.python.ambitious-engineer.com\/?p=3077"},"modified":"2020-11-29T23:14:49","modified_gmt":"2020-11-29T14:14:49","slug":"%e6%96%87%e5%ad%97%e5%88%97%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86","status":"publish","type":"post","link":"https:\/\/www.python.ambitious-engineer.com\/archives\/3077","title":{"rendered":"\u6587\u5b57\u5217\u3092\u4f7f\u3063\u3066\u307f\u3088\u3046"},"content":{"rendered":"<h2>\u6587\u5b57\u5217<\/h2>\n<p>\u3000\u5909\u6570\u306b\u306f\u524d\u56de\u89e3\u8aac\u3057\u305f\u6574\u6570\u4ee5\u5916\u306b\u6587\u5b57\u5217\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6574\u6570\u3092\u683c\u7d0d\u3057\u305f\u5909\u6570\u3092<strong>int\u578b<\/strong>\u3001\u6587\u5b57\u5217\u3092\u683c\u7d0d\u3057\u305f\u5909\u6570\u3092<strong>str\u578b<\/strong>\u3068\u547c\u3073\u307e\u3059\u3002\u6574\u6570\u3084\u6587\u5b57\u5217\u306a\u3069\u3001\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3054\u3068\u306b\u300c\u578b\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u5b9a\u3081\u3089\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3002<\/p>\n<p>\u7d30\u304b\u3044\u8aac\u660e\u306f\u3055\u3066\u304a\u304d\u3001\u307e\u305a\u306f\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext1 = &quot;\u3053\u3093\u306b\u3061\u306f\u3001&quot;\r\ntext2 = &quot;\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d&quot;\r\n\r\nprint(text1)\r\nprint(text2)\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u5217\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u3053\u3093\u306b\u3061\u306f\u3001\r\n\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d\r\n<\/pre>\n<p><strong>\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u3067\u56f2\u3093\u3060\u6587\u5b57\u5217\u306fstr\u578b\u3068\u3057\u3066\u6271\u308f\u308c<\/strong>\u3001\u5909\u6570\u306b\u4ee3\u5165\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4e0a\u306e\u30b3\u30fc\u30c9\u3067\u306f\u30012\u3064\u306e\u5909\u6570text1\u3001text2\u306b\u5bfe\u3057\u305d\u308c\u305e\u308c\u300c\u3053\u3093\u306b\u3061\u306f\u300d\u300c\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d\u300d\u3068\u3044\u3046str\u578b\u3092\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002\u305d\u306e\u5f8cprint\u95a2\u6570\u3067\u6587\u5b57\u5217\u3092\u51fa\u529b\u3057\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8\u306e\u4ee3\u308f\u308a\u306b\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u6587\u5b57\u5217\u3092\u3064\u306a\u3052\u3066\u307f\u308b<\/h2>\n<p>\u3000\u6b21\u306b\u3001\u8907\u6570\u306e\u6587\u5b57\u5217\u3092\u3064\u306a\u3052\u3066\u307f\u307e\u3057\u3087\u3046\u3002+\u8a18\u53f7\u3067\u6587\u5b57\u5217\u3068\u6587\u5b57\u5217\u3092\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext1 = &quot;\u3053\u3093\u306b\u3061\u306f\u3001&quot;\r\ntext2 = &quot;\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d&quot;\r\ntext3 = text1 + text2\r\n\r\nprint(text3)\r\n<\/pre>\n<p>\u5b9f\u884c\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6587\u5b57\u5217\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\u3053\u3093\u306b\u3061\u306f\u3001\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d\r\n<\/pre>\n<p>\u5909\u6570text1\u3001text2\u3092\u9023\u7d50\u3057\u305f\u7d50\u679c\u3092\u3001\u5909\u6570text3\u306b\u4ee3\u5165\u3057\u3066\u3044\u307e\u3059\u3002int\u578b\u306e\u5834\u5408\u306f\u8db3\u3057\u7b97\u306b\u306a\u308a\u307e\u3057\u305f\u304c\u3001\u6587\u5b57\u5217\u306e\u5834\u5408\u306f\u3053\u306e\u3088\u3046\u306b\u9023\u7d50\u3055\u308c\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u5909\u6570\u306b\u4ee3\u5165\u305b\u305a\u306b\u305d\u306e\u307e\u307eprint\u95a2\u6570\u3067\u51fa\u529b\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext1 = &quot;\u3053\u3093\u306b\u3061\u306f\u3001&quot;\r\ntext2 = &quot;\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d&quot;\r\n\r\nprint(text1 + text2)\r\n<\/pre>\n<p>\u307e\u305f\u3001\u5909\u6570\u306b\u683c\u7d0d\u305b\u305a\u306b\u6587\u5b57\u5217\u3092\u76f4\u63a5\u3064\u306a\u3052\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext = &quot;\u3053\u3093\u306b\u3061\u306f\u3001&quot; + &quot;\u4eca\u65e5\u306f\u3044\u3044\u5929\u6c17\u3067\u3059\u306d&quot;\r\nprint(text)\r\n<\/pre>\n<p>\u3055\u3089\u306b\u3001+\u8a18\u53f7\u306e\u9023\u7d50\u306f\u3044\u304f\u3064\u3067\u3082\u3067\u304d\u307e\u3059\u3002\u30da\u30fc\u30b8\u4e0b\u90e8\u306e\u6f14\u7fd2\u3067\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<h2>\u6587\u5b57\u5217\u3068\u6570\u5b57\u3092\u3064\u306a\u3052\u3066\u307f\u308b<\/h2>\n<p>\u3000print\u95a2\u6570\u3067\u6587\u5b57\u5217\u3068\u6570\u5b57\u3092\u540c\u6642\u306b\u51fa\u529b\u3057\u305f\u304f\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u304c\u3001<strong>\u6587\u5b57\u5217\u3068\u6570\u5b57\u3092\u76f4\u63a5+\u3067\u3064\u306a\u3052\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093<\/strong>\u3002\u4f8b\u3048\u3070\u3001\u4f55\u304b\u306e\u56de\u6570\u3092\u8868\u793a\u3055\u305b\u305f\u3044\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u306f\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ncount = 18\r\ntext = &quot;\u56de\u6570:&quot; + count \r\nprint(text)\r\n<\/pre>\n<p>\u3053\u3046\u3044\u3063\u305f\u5834\u5408\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306e\u3088\u3046\u306bstr\u3067\u6570\u5b57\u3092\u4e00\u65e6\u6587\u5b57\u5217\u306b\u5909\u63db\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u3064\u306a\u3052\u308b\u3053\u3068\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ncount = 18\r\ntext = &quot;\u56de\u6570:&quot; + str(count)\r\nprint(text)\r\n<\/pre>\n<p>str\u306f\u3053\u308c\u307e\u3067\u4f7f\u7528\u3057\u3066\u304d\u305fprint\u3068\u540c\u3058\u304f\u300c\u95a2\u6570\u300d\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u306a\u306e\u3067\u3059\u304c\u3001\u3053\u308c\u306b\u3064\u3044\u3066\u306f\u307e\u305f\u5225\u9014\u8aac\u660e\u3057\u307e\u3059\u3002\u4eca\u306fstr\u3067\u300c\u5909\u6570\u3092\u6587\u5b57\u5217\u306b\u5909\u3048\u3089\u308c\u308b\u300d\u3068\u601d\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u6f14\u7fd2<\/h2>\n<p>\u3000\u305d\u308c\u3067\u306f\u6f14\u7fd2\u3067\u3059\u3002<\/p>\n<h3>\u6f14\u7fd21<\/h3>\n<p>\u3000\u4ee5\u4e0b\u306e\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3001\u9806\u306b\u9023\u7d50\u3057\u3066print\u95a2\u6570\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>text1\uff1a\"\u3053\u3093\u3070\u3093\u306f\u3001\"<\/li>\n<li>text2\uff1a\"\u3044\u3044\u591c\u3067\u3059\u306d\u3002\"<\/li>\n<li>text3\uff1a\"\u4eca\u65e5\u306e\u5915\u98df\u306f\u306a\u3093\u3067\u3059\u304b\uff1f\"<\/li>\n<\/ul>\n<h3>\u6f14\u7fd21\u89e3\u7b54\u4f8b<\/h3>\n<p>\u30003\u3064\u306e\u6587\u5b57\u5217\u3092+\u3067\u9023\u7d50\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext1 = &quot;\u3053\u3093\u3070\u3093\u306f\u3001&quot;\r\ntext2 = &quot;\u3044\u3044\u591c\u3067\u3059\u306d\u3002&quot;\r\ntext3 = &quot;\u4eca\u65e5\u306e\u5915\u98df\u306f\u306a\u3093\u3067\u3059\u304b\uff1f&quot;\r\n\r\ntext4 = text1 + text2 + text3\r\nprint(text4)\r\n<\/pre>\n<h3>\u6f14\u7fd22<\/h3>\n<p>\u3000\u4ee5\u4e0b\u306e\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3001\u9806\u306b\u9023\u7d50\u3057\u3066print\u95a2\u6570\u3067\u51fa\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li>text1\uff1a\"\u79c1\u306e\u5e74\u9f62\u306f\"<\/li>\n<li>age\uff1a22<\/li>\n<li>text2\uff1a\"\u6b73\u3067\u3059\u3002\"<\/li>\n<\/ul>\n<h3>\u6f14\u7fd22\u89e3\u7b54\u4f8b<\/h3>\n<p>\u3000\u4eca\u5ea6\u306f\u6587\u5b57\u5217\u3068\u6574\u6570\u306e\u7d50\u5408\u3067\u3059\u3002str\u3067\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\ntext1 = &quot;\u79c1\u306e\u5e74\u9f62\u306f&quot;\r\nage = 22\r\ntext2 = &quot;\u6b73\u3067\u3059\u3002&quot;\r\n\r\ntext3 = text1 + str(age) + text2\r\nprint(text3)\r\n\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u5217 \u3000\u5909\u6570\u306b\u306f\u524d\u56de\u89e3\u8aac\u3057\u305f\u6574\u6570\u4ee5\u5916\u306b\u6587\u5b57\u5217\u3092\u683c\u7d0d\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6574\u6570\u3092\u683c\u7d0d\u3057\u305f\u5909\u6570\u3092int\u578b\u3001\u6587\u5b57\u5217\u3092\u683c\u7d0d\u3057\u305f\u5909\u6570\u3092str\u578b\u3068\u547c\u3073\u307e\u3059\u3002\u6574\u6570\u3084\u6587\u5b57\u5217\u306a\u3069\u3001\u683c\u7d0d\u3055\u308c\u3066\u3044\u308b\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3054\u3068\u306b\u300c\u578b\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u5b9a\u3081\u3089\u308c...<\/p>\n","protected":false},"author":1,"featured_media":3078,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[206],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3077"}],"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=3077"}],"version-history":[{"count":4,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3077\/revisions"}],"predecessor-version":[{"id":3337,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/posts\/3077\/revisions\/3337"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media\/3078"}],"wp:attachment":[{"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/media?parent=3077"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/categories?post=3077"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.python.ambitious-engineer.com\/wp-json\/wp\/v2\/tags?post=3077"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}