{"id":94752,"date":"2024-03-21T18:20:40","date_gmt":"2024-03-21T09:20:40","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/"},"modified":"2024-04-05T04:51:03","modified_gmt":"2024-04-04T19:51:03","slug":"%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5"},"content":{"rendered":"<p>Python\u3067\u56de\u6587\u3092\u691c\u8a3c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u65b9\u6cd51: \u6587\u5b57\u5217\u5316\u3057\u3066\u6bd4\u8f03\u3059\u308b<br \/>\n\u6574\u6570\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u3001\u6587\u5b57\u5217\u3068\u9006\u306b\u3057\u305f\u6587\u5b57\u5217\u304c\u7b49\u3057\u3044\u304b\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u5224\u5b9a\u3059\u308b\u624b\u6cd5\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">is_palindrome<\/span>(<span class=\"hljs-params\">num<\/span>):\r\n    num_str = <span class=\"hljs-built_in\">str<\/span>(num)\r\n    <span class=\"hljs-keyword\">return<\/span> num_str == num_str[::-<span class=\"hljs-number\">1<\/span>]\r\n<\/code><\/pre>\n<p>\u65b9\u6cd52\uff1a\u6841\u3092\u53cd\u8ee2\u3055\u305b\u3066\u6bd4\u8f03\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">is_palindrome<\/span>(<span class=\"hljs-params\">num<\/span>):\r\n    reverse = <span class=\"hljs-number\">0<\/span>\r\n    temp = num\r\n    <span class=\"hljs-keyword\">while<\/span> temp &gt; <span class=\"hljs-number\">0<\/span>:\r\n        reverse = reverse * <span class=\"hljs-number\">10<\/span> + temp % <span class=\"hljs-number\">10<\/span>\r\n        temp = temp \/\/ <span class=\"hljs-number\">10<\/span>\r\n    <span class=\"hljs-keyword\">return<\/span> num == reverse\r\n<\/code><\/pre>\n<p>\u56de\u6587\u6570\u3092\u5224\u5b9a\u3059\u308b\u65b9\u6cd5\u306f 2 \u7a2e\u985e\u3042\u308a\u3001\u4f7f\u3044\u305f\u3044\u65b9\u306b\u5408\u308f\u305b\u3066\u4f7f\u3044\u5206\u3051\u308c\u3070\u826f\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067\u56de\u6587\u3092\u691c\u8a3c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002 \u65b9\u6cd51: \u6587\u5b57\u5217\u5316\u3057\u3066\u6bd4\u8f03\u3059\u308b \u6574\u6570\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u3001\u6587\u5b57\u5217\u3068\u9006\u306b\u3057\u305f\u6587\u5b57\u5217\u304c\u7b49\u3057\u3044\u304b\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u5224\u5b9a\u3059\u308b\u624b\u6cd5\u3002 def is_palindrome( [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-94752","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bpython\u306e\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python\u3067\u56de\u6587\u3092\u691c\u8a3c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002 \u65b9\u6cd51: \u6587\u5b57\u5217\u5316\u3057\u3066\u6bd4\u8f03\u3059\u308b \u6574\u6570\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u3001\u6587\u5b57\u5217\u3068\u9006\u306b\u3057\u305f\u6587\u5b57\u5217\u304c\u7b49\u3057\u3044\u304b\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u5224\u5b9a\u3059\u308b\u624b\u6cd5\u3002 def is_palindrome( [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bpython\u306e\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T09:20:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T19:51:03+00:00\" \/>\n<meta name=\"author\" content=\"\u84ee, \u7ffc\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u84ee, \u7ffc\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/\",\"name\":\"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-21T09:20:40+00:00\",\"dateModified\":\"2024-04-04T19:51:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413\",\"name\":\"\u84ee, \u7ffc\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g\",\"caption\":\"\u84ee, \u7ffc\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bpython\u306e\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5","og_description":"Python\u3067\u56de\u6587\u3092\u691c\u8a3c\u3059\u308b\u306b\u306f\u3001\u6b21\u306e2\u3064\u306e\u65b9\u6cd5\u304c\u5229\u7528\u3067\u304d\u307e\u3059\u3002 \u65b9\u6cd51: \u6587\u5b57\u5217\u5316\u3057\u3066\u6bd4\u8f03\u3059\u308b \u6574\u6570\u3092\u6587\u5b57\u5217\u306b\u5909\u63db\u3057\u3001\u6587\u5b57\u5217\u3068\u9006\u306b\u3057\u305f\u6587\u5b57\u5217\u304c\u7b49\u3057\u3044\u304b\u3092\u6bd4\u8f03\u3059\u308b\u3053\u3068\u3067\u5224\u5b9a\u3059\u308b\u624b\u6cd5\u3002 def is_palindrome( [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bpython\u306e\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-21T09:20:40+00:00","article_modified_time":"2024-04-04T19:51:03+00:00","author":"\u84ee, \u7ffc","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u84ee, \u7ffc"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/","name":"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-21T09:20:40+00:00","dateModified":"2024-04-04T19:51:03+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u56de\u6587\u6587\u5b57\u5217\u304b\u3069\u3046\u304b\u3092\u5224\u5b9a\u3059\u308bPython\u306e\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/cdc124a0aaebf26393d8d591183ca413","name":"\u84ee, \u7ffc","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/27308f733c7fcdac8617926a0100c77213339c4e501310a08c0baf946bf823bc?s=96&d=mm&r=g","caption":"\u84ee, \u7ffc"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/rentsubasa\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e5%9b%9e%e6%96%87%e6%96%87%e5%ad%97%e5%88%97%e3%81%8b%e3%81%a9%e3%81%86%e3%81%8b%e3%82%92%e5%88%a4%e5%ae%9a%e3%81%99%e3%82%8bpython%e3%81%ae%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/94752","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=94752"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/94752\/revisions"}],"predecessor-version":[{"id":309214,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/94752\/revisions\/309214"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=94752"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=94752"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=94752"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}