{"id":115187,"date":"2024-03-23T01:41:56","date_gmt":"2024-03-22T16:41:56","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/"},"modified":"2024-03-27T14:56:09","modified_gmt":"2024-03-27T05:56:09","slug":"python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","title":{"rendered":"Python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p>Python\u3067\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30eacolorama\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u8272\u4ed8\u304d\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002 colorama\u30e9\u30a4\u30d6\u30e9\u30ea\u306fpip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>pip install colorama\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5f8c\u3001\u6b21\u306e\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u3066\u8272\u3064\u304d\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"hljs-keyword\">from<\/span> colorama <span class=\"hljs-keyword\">import<\/span> init, Fore, Back, Style\r\n\r\n<span class=\"hljs-comment\"># \u521d\u59cb\u5316colorama<\/span>\r\ninit()\r\n\r\n<span class=\"hljs-comment\"># \u8f93\u51fa\u7ea2\u8272\u7684\u6587\u5b57<\/span>\r\n<span class=\"hljs-built_in\">print<\/span>(Fore.RED + <span class=\"hljs-string\">'This text is red'<\/span>)\r\n\r\n<span class=\"hljs-comment\"># \u8f93\u51fa\u7eff\u8272\u7684\u80cc\u666f\u8272\u548c\u9ec4\u8272\u7684\u6587\u5b57<\/span>\r\n<span class=\"hljs-built_in\">print<\/span>(Back.GREEN + Fore.YELLOW + <span class=\"hljs-string\">'This text has a green background and yellow text'<\/span>)\r\n\r\n<span class=\"hljs-comment\"># \u91cd\u7f6e\u6837\u5f0f<\/span>\r\n<span class=\"hljs-built_in\">print<\/span>(Style.RESET_ALL + <span class=\"hljs-string\">'This text has the default style'<\/span>)\r\n<\/code><\/pre>\n<p>\u3053\u3046\u3059\u308b\u3053\u3068\u3067\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u8272\u4ed8\u304d\u306e\u6587\u5b57\u5217\u3092\u51fa\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u6ce8\u610f\uff1aWindows \u7248\u3067\u306f\u3001colorama \u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u521d\u671f\u5316\u3059\u308b\u305f\u3081\u306b init() \u30e1\u30bd\u30c3\u30c9\u3092\u660e\u793a\u7684\u306b\u547c\u3073\u51fa\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u3067\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30eacolorama\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u8272\u4ed8\u304d\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002 colorama\u30e9\u30a4\u30d6\u30e9\u30ea\u306fpip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002 pip install colo [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-115187","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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"Python\u3067\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30eacolorama\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u8272\u4ed8\u304d\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002 colorama\u30e9\u30a4\u30d6\u30e9\u30ea\u306fpip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002 pip install colo [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-22T16:41:56+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-27T05:56:09+00:00\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/\",\"name\":\"Python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-22T16:41:56+00:00\",\"dateModified\":\"2024-03-27T05:56:09+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\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\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"Python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5","og_description":"Python\u3067\u306f\u3001\u30b5\u30fc\u30c9\u30d1\u30fc\u30c6\u30a3\u306e\u30e9\u30a4\u30d6\u30e9\u30eacolorama\u3092\u4f7f\u7528\u3057\u3066\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u306b\u8272\u4ed8\u304d\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u51fa\u529b\u3067\u304d\u307e\u3059\u3002 colorama\u30e9\u30a4\u30d6\u30e9\u30ea\u306fpip\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002 pip install colo [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-22T16:41:56+00:00","article_modified_time":"2024-03-27T05:56:09+00:00","author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95\/","name":"Python\u3067\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\u3059\u308b\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-22T16:41:56+00:00","dateModified":"2024-03-27T05:56:09+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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\u30ab\u30e9\u30fc\u4ed8\u304d\u306e\u6587\u5b57\u3092\u51fa\u529b\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\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python%e3%81%a7%e3%82%ab%e3%83%a9%e3%83%bc%e4%bb%98%e3%81%8d%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e5%87%ba%e5%8a%9b%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\/115187","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=115187"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/115187\/revisions"}],"predecessor-version":[{"id":190773,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/115187\/revisions\/190773"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=115187"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=115187"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=115187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}