{"id":102064,"date":"2024-03-22T04:51:03","date_gmt":"2024-03-21T19:51:03","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-27T08:49:04","modified_gmt":"2024-03-26T23:49:04","slug":"python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Python\u3067\u306f\u3001os\u30e2\u30b8\u30e5\u30fc\u30eb\u306esystem()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u753b\u9762\u3092\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306e\u52d5\u4f5c\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u3001\u3055\u307e\u3056\u307e\u306aOS\u3067\u306e\u753b\u9762\u6d88\u53bb\u65b9\u6cd5\u3067\u3059\uff1a<\/p>\n<p>Windows\u3067\u306f\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> os\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">clear<\/span>():\r\n    os.system(<span class=\"hljs-string\">'cls'<\/span>) <span class=\"hljs-comment\"># \u4f7f\u7528'cls'\u547d\u4ee4\u6765\u6e05\u5c4f<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u5728\u5faa\u73af\u4e2d\u8c03\u7528clear()\u51fd\u6570\u6765\u6e05\u5c4f<\/span>\r\n<span class=\"hljs-keyword\">while<\/span> <span class=\"hljs-literal\">True<\/span>:\r\n    clear()\r\n    <span class=\"hljs-comment\"># \u5faa\u73af\u7684\u4ee3\u7801<\/span>\r\n<\/code><\/pre>\n<p>Linux\u3068Mac OS\u3067\u306f\uff1a<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">import<\/span> os\r\n<span class=\"hljs-keyword\">def<\/span> <span class=\"hljs-title function_\">clear<\/span>():\r\n    os.system(<span class=\"hljs-string\">'clear'<\/span>) <span class=\"hljs-comment\"># \u4f7f\u7528'clear'\u547d\u4ee4\u6765\u6e05\u5c4f<\/span>\r\n\r\n<span class=\"hljs-comment\"># \u5728\u5faa\u73af\u4e2d\u8c03\u7528clear()\u51fd\u6570\u6765\u6e05\u5c4f<\/span>\r\n<span class=\"hljs-keyword\">while<\/span> <span class=\"hljs-literal\">True<\/span>:\r\n    clear()\r\n    <span class=\"hljs-comment\"># \u5faa\u73af\u7684\u4ee3\u7801<\/span>\r\n<\/code><\/pre>\n<p>os.system()\u95a2\u6570\u306f\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u4e0a\u306e\u30ea\u30b9\u30af\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u5b9f\u969b\u958b\u767a\u3067\u4f7f\u3046\u6642\u306b\u306f\u6ce8\u610f\u3059\u308b\u3053\u3068\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067\u306f\u3001os\u30e2\u30b8\u30e5\u30fc\u30eb\u306esystem()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u753b\u9762\u3092\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306e\u52d5\u4f5c\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u3055\u307e\u3056\u307e\u306aOS\u3067\u306e\u753b\u9762 [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102064","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>Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\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\/python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python\u3067\u306f\u3001os\u30e2\u30b8\u30e5\u30fc\u30eb\u306esystem()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u753b\u9762\u3092\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306e\u52d5\u4f5c\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u3055\u307e\u3056\u307e\u306aOS\u3067\u306e\u753b\u9762 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T19:51:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-26T23:49:04+00:00\" \/>\n<meta name=\"author\" content=\"\u590f\u6a39, \u98a8\" \/>\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=\"\u590f\u6a39, \u98a8\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-21T19:51:03+00:00\",\"dateModified\":\"2024-03-26T23:49:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%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\":\"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\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\/4e591db2661c4cc425470b461259391d\",\"name\":\"\u590f\u6a39, \u98a8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g\",\"caption\":\"\u590f\u6a39, \u98a8\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%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":"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\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\/python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5","og_description":"Python\u3067\u306f\u3001os\u30e2\u30b8\u30e5\u30fc\u30eb\u306esystem()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30b7\u30b9\u30c6\u30e0\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u753b\u9762\u3092\u30af\u30ea\u30a2\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u3053\u306e\u65b9\u6cd5\u306e\u52d5\u4f5c\u306f\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0\u306b\u3088\u3063\u3066\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002 \u4ee5\u4e0b\u3001\u3055\u307e\u3056\u307e\u306aOS\u3067\u306e\u753b\u9762 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-21T19:51:03+00:00","article_modified_time":"2024-03-26T23:49:04+00:00","author":"\u590f\u6a39, \u98a8","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u590f\u6a39, \u98a8"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-21T19:51:03+00:00","dateModified":"2024-03-26T23:49:04+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/4e591db2661c4cc425470b461259391d"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%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":"Python\u3067\u30eb\u30fc\u30d7\u4e2d\u306b\u753b\u9762\u3092\u30af\u30ea\u30a2\u3059\u308b\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\/4e591db2661c4cc425470b461259391d","name":"\u590f\u6a39, \u98a8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/65e0ff40534461b1fa000382dc194e1716f793ab0bcb218ac3c40895551a08c5?s=96&d=mm&r=g","caption":"\u590f\u6a39, \u98a8"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/natsukikaze\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%83%ab%e3%83%bc%e3%83%97%e4%b8%ad%e3%81%ab%e7%94%bb%e9%9d%a2%e3%82%92%e3%82%af%e3%83%aa%e3%82%a2%e3%81%99%e3%82%8b%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\/102064","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=102064"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/102064\/revisions"}],"predecessor-version":[{"id":185649,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/102064\/revisions\/185649"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=102064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=102064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=102064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}