{"id":280,"date":"2020-09-01T15:41:33","date_gmt":"2020-09-01T06:41:33","guid":{"rendered":"http:\/\/ringo-apple-web.com\/?p=280"},"modified":"2020-09-08T13:53:54","modified_gmt":"2020-09-08T04:53:54","slug":"%e7%ac%ac%ef%bc%96%e7%ab%a0%e3%80%80%e6%96%87%e5%ad%97%e5%88%97%e6%93%8d%e4%bd%9c","status":"publish","type":"post","link":"http:\/\/ringo-apple-web.com\/?p=280","title":{"rendered":"\u7b2c\uff16\u7ae0\u3000\u6587\u5b57\u5217\u64cd\u4f5c"},"content":{"rendered":"\n<p>Python\u306b\u306f\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3059\u308b\u6a5f\u80fd\u304c\u3042\u3089\u304b\u3058\u3081\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3002\u6587\u5b57\u5217\u3092\u3042\u308b\u6587\u5b57\u3067\uff12\u5206\u5272\u3057\u305f\u308a\u3001\u3059\u3079\u3066\u5927\u6587\u5b57\u306b\u5909\u63db\u3057\u305f\u308a\u306a\u3069\u306e\u6a5f\u80fd\u304c\u3042\u308b<\/p>\n\n\n\n<p>\u3082\u3057\u3059\u3079\u3066\u304c\u5927\u6587\u5b57\u3067\u66f8\u304b\u308c\u305f\u6587\u5b57\u5217\u304c\u3042\u3063\u3066\u3053\u308c\u3092\u3059\u3079\u3066\u5c0f\u6587\u5b57\u306b\u5909\u3048\u305f\u3044\u3068\u304d\u305d\u306e\u64cd\u4f5c\u3082Python\u3067\u63d0\u4f9b\u3055\u308c\u3066\u3044\u308b<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u6a5f\u80fd\u8aac\u660e<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>\uff13\u91cd\u30af\u30a9\u30fc\u30c8\u6587\u5b57\u5217<\/strong><\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u3092\u8907\u6570\u884c\u66f8\u304d\u305f\u3044\u5834\u5408\u3001\u30af\u30a9\u30fc\u30c8\u3092\uff13\u3064\u4f7f\u3046\uff13\u91cd\u30af\u30a9\u30fc\u30c8\u306b\u631f\u3093\u3067\u66f8\u304f<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;&quot;&quot; line one\n    line two \n    line three\n&quot;&quot;&quot;<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u30a4\u30f3\u30c7\u30c3\u30af\u30b9<\/strong><\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u306f\u30ea\u30b9\u30c8\u3084\u30bf\u30d7\u30eb\u3068\u540c\u3058\u3088\u3046\u306b\u30a4\u30c6\u30e9\u30d6\u30eb(\u7e70\u308a\u8fd4\u3057\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8)\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>author = &quot;Kafka&quot;\nauthor[0]\nauthor[1]\nauthor[2]\nauthor[3]\nauthor[4]\n\n&gt;&gt;&#39;K&#39;\n&gt;&gt;&#39;a&#39;\n&gt;&gt;&#39;f&#39;\n&gt;&gt;&#39;k&#39;\n&gt;&gt;&#39;a&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3067\u306f0,1,2,3,4\u3092\u4f7f\u3063\u3066kafka\u306e\u6587\u5b57\u3092\u53d6\u308a\u51fa\u3057\u3066\u3044\u308b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>author = &quot;Kafka&quot;\nauthor[5]\n\n&gt;&gt;IndexError: string index out of range<\/code><\/pre><\/div>\n\n\n\n<p>\u6587\u5b57\u6570\u3088\u308a\u3082\u5927\u304d\u3044\u5024\u3092\u53d6\u308a\u51fa\u305d\u3046\u3068\u3059\u308b\u3068Python\u306f\u4f8b\u5916\u3092\u767a\u751f\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u306f\u30bf\u30d7\u30eb\u3068\u540c\u3058\u3088\u3046\u306b\u30a4\u30df\u30e5\u30fc\u30bf\u30d6\u30eb<\/p>\n\n\n\n<p>\u6587\u5b57\u3092\u5165\u308c\u66ff\u3048\u305f\u3044\u3068\u304d\u306f\u65b0\u3057\u3044\u6587\u5b57\u5217\u3092\u4f5c\u3089\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>ff = &quot;F. Fitzgeald&quot;\nff = &quot;F. Scott Fitzgeald&quot;\n\nff\n\n&gt;&gt;F.Scott Fitzgerald<\/code><\/pre><\/div>\n\n\n\n<p>\u3042\u308b\u6587\u5b57\u5217\u304b\u3089\u3061\u3087\u3063\u3068\u3060\u3051\u5909\u66f4\u3057\u305f\u65b0\u3057\u3044\u6587\u5b57\u5217\u3092\u4f5c\u308a\u51fa\u3059\u30e1\u30bd\u30c3\u30c9\u3082\u3042\u308a\u307e\u3059\u304c\u5f8c\u534a\u3067\u3002<\/p>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u6587\u5b57\u5217\u306e\u8db3\u3057\u7b97<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;cat&quot; + &quot;in&quot; &quot;hat&quot;\n\n&gt;&gt;&#39;catinhat&#39;\n\n&quot;cat&quot; + &quot;in&quot; + &quot;the&quot; + &quot;hat&quot;\n\n&gt;&gt;&#39;catinthehat&#39;<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u6587\u5b57\u5217\u306e\u639b\u3051\u7b97<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;Sawyer&quot; * 3\n\n&gt;&gt;SawyerSawyerSawyer<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-text-align-center\"><strong>\u5927\u6587\u5b57\u5c0f\u6587\u5b57\u5909\u63db<\/strong><\/p>\n\n\n\n<p>\u6587\u5b57\u5217\u3092\u3059\u3079\u3066\u5927\u6587\u5b57\u306b\u5909\u63db\u3059\u308b\u306b\u306f<strong>upper\u30e1\u30bd\u30c3\u30c9<\/strong>\u304c\u3042\u308b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;We hold these truths...&quot;.upper()\n\n&gt;&gt;&#39;WE HOLD THESE TRUTHS...&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u540c\u69d8\u306b\u3059\u3079\u3066\u306e\u6587\u5b57\u3092\u5c0f\u6587\u5b57\u306b\u5909\u63db\u3059\u308b\u306b\u306f<strong>lower\u30e1\u30bd\u30c3\u30c9<\/strong>\u304c\u3042\u308b<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;SO IT GOES.&quot;.lower()\n\n&gt;&gt; &#39;so it goes.&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u6587\u5b57\u5217\u306e\u6700\u521d\u306e\u6587\u5b57\u3092\u5927\u6587\u5b57\u3067\u66f8\u304f\u3053\u3068\u3092<strong>\u30ad\u30e3\u30d4\u30bf\u30e9\u30a4\u30ba<\/strong>\u3068\u3044\u3046\u3002<\/p>\n\n\n\n<p><strong>capitalize\u30e1\u30bd\u30c3\u30c9<\/strong>\u3092\u4f7f\u3048\u3070\u6587\u5b57\u306e\u5148\u982d\u3060\u3051\u5927\u6587\u5b57\u3067\u6b8b\u308a\u3092\u5c0f\u6587\u5b57\u3067\u3067\u304d\u308b\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;four score and....&quot;.capitalize()\n\n&gt;&gt;&quot;Four score and...&quot;<\/code><\/pre><\/div>\n\n\n\n<p class=\"has-text-align-center\">\u66f8\u5f0f\u5316<\/p>\n\n\n\n<p>format\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3048\u3070\u3001\u6587\u5b57\u5217\u306e\u4e00\u90e8\u3092\u5f8c\u3067\u7a74\u57cb\u3081\u3057\u3066\u65b0\u3057\u3044\u6587\u5b57\u5217\u3092\u8fd4\u305b\u307e\u3059\u3002\u66f8\u5f0f\u5316\uff08\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\uff09\u6587\u5b57\u5217\u306f\u5f8c\u3067\u7f6e\u304d\u63db\u3048\u305f\u3044\u90e8\u5206\u3092\u6ce2\u304b\u3063\u3053\u3067\u56f2\u3063\u3066\u304a\u304d\u66f8\u5f0f\u5316\u8a2d\u5b9a\uff08\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u30e1\u30bd\u30c3\u30c9\u547c\u3073\u51fa\u3057\uff09\u3067\u7f6e\u304d\u63db\u3048\u308b\u5024\u3092\u6e21\u3059<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-python\" data-lang=\"Python\"><code>&quot;\u3053\u3093\u306b\u3061\u306f&quot;\u3000{}&quot;.format(&quot;\u30a6\u30a3\u30ea\u30a2\u30e0\u30fb\u30d5\u30a9\u30fc\u30af\u30ca\u30fc&quot;)\n\n&gt;&gt;&#39;\u3053\u3093\u306b\u3061\u306f\u3001\u30a6\u30a3\u30ea\u30a2\u30e0\u30fb\u30d5\u30a9\u30fc\u30af\u30ca\u30fc&#39;<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306b\u306f\u6587\u5b57\u5217\u3092\u64cd\u4f5c\u3059\u308b\u6a5f\u80fd\u304c\u3042\u3089\u304b\u3058\u3081\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u3002\u6587\u5b57\u5217\u3092\u3042\u308b\u6587\u5b57\u3067\uff12\u5206\u5272\u3057\u305f\u308a\u3001\u3059\u3079\u3066\u5927\u6587\u5b57\u306b\u5909\u63db\u3057\u305f\u308a\u306a\u3069\u306e\u6a5f\u80fd\u304c\u3042\u308b \u3082\u3057\u3059\u3079\u3066\u304c\u5927\u6587\u5b57\u3067\u66f8\u304b\u308c\u305f\u6587\u5b57\u5217\u304c\u3042\u3063\u3066\u3053\u308c\u3092\u3059\u3079\u3066\u5c0f\u6587\u5b57\u306b\u5909\u3048\u305f\u3044\u3068\u304d\u305d\u306e\u64cd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":185,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[18],"tags":[],"_links":{"self":[{"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/posts\/280"}],"collection":[{"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=280"}],"version-history":[{"count":9,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions"}],"predecessor-version":[{"id":311,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/posts\/280\/revisions\/311"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=\/wp\/v2\/media\/185"}],"wp:attachment":[{"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=280"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=280"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ringo-apple-web.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=280"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}