{"id":96775,"date":"2024-03-21T21:05:44","date_gmt":"2024-03-21T12:05:44","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/"},"modified":"2024-04-05T05:12:04","modified_gmt":"2024-04-04T20:12:04","slug":"python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","title":{"rendered":"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"<p>Python \u3067\u306f\u3001clear() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u3092\u7a7a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u5168\u3066\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>list_name.clear()\r\n<\/code><\/pre>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"post-pre\"><code>my_list = [<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">3<\/span>, <span class=\"hljs-number\">4<\/span>, <span class=\"hljs-number\">5<\/span>]\r\nmy_list.clear()\r\n<span class=\"hljs-built_in\">print<\/span>(my_list)  <span class=\"hljs-comment\"># \u8f93\u51fa\uff1a[]<\/span>\r\n<\/code><\/pre>\n<p>\u96c6\u5408\u5185\u306e\u8981\u7d20\u3092\u30af\u30ea\u30a2\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u69cb\u6587\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>set_name.clear()\r\n<\/code><\/pre>\n<p>\u4f8b\u3048\u3070,<\/p>\n<pre class=\"post-pre\"><code>my_set = {<span class=\"hljs-number\">1<\/span>, <span class=\"hljs-number\">2<\/span>, <span class=\"hljs-number\">3<\/span>, <span class=\"hljs-number\">4<\/span>, <span class=\"hljs-number\">5<\/span>}\r\nmy_set.clear()\r\n<span class=\"hljs-built_in\">print<\/span>(my_set)  <span class=\"hljs-comment\"># \u8f93\u51fa\uff1aset()<\/span>\r\n<\/code><\/pre>\n<p>\u8f9e\u66f8\u306b\u3064\u3044\u3066\u306f\u3001 \ub2e4\uc74c \uad6c\ubb38\uc744 \uc0ac\uc6a9\ud558\uc5ec \ub515\uc154\ub108\ub9ac \ub0b4\uc6a9\uc744 \uc9c0\uc6b8 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<pre class=\"post-pre\"><code>dict_name.clear()\r\n<\/code><\/pre>\n<p>\u4f8b\u3048\u3070\u3001<\/p>\n<pre class=\"post-pre\"><code>my_dict = {<span class=\"hljs-string\">\"name\"<\/span>: <span class=\"hljs-string\">\"Alice\"<\/span>, <span class=\"hljs-string\">\"age\"<\/span>: <span class=\"hljs-number\">25<\/span>}\r\nmy_dict.clear()\r\n<span class=\"hljs-built_in\">print<\/span>(my_dict)  <span class=\"hljs-comment\"># \u8f93\u51fa\uff1a{}<\/span>\r\n<\/code><\/pre>\n<p>clear\u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u3046\u3068\u5143\u306e\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u304c\u305d\u306e\u307e\u307e\u5909\u66f4\u3055\u308c\u3001\u30af\u30ea\u30a2\u5f8c\u306f\u7a7a\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306a\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python \u3067\u306f\u3001clear() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u3092\u7a7a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u5168\u3066\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002 list_name.clear() \u4f8b\u3048\u3070\u3001 my_list = [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-96775","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 clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - 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-clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\" \/>\n<meta property=\"og:description\" content=\"Python \u3067\u306f\u3001clear() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u3092\u7a7a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u5168\u3066\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002 list_name.clear() \u4f8b\u3048\u3070\u3001 my_list = [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2024-03-21T12:05:44+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-04T20:12:04+00:00\" \/>\n<meta name=\"author\" content=\"\u6d77\u6597, \u8475\" \/>\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=\"\u6d77\u6597, \u8475\" \/>\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-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\",\"name\":\"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2024-03-21T12:05:44+00:00\",\"dateModified\":\"2024-04-04T20:12:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\"}]},{\"@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\/20cfc053626f4d45c0fa7a4e7964b5b6\",\"name\":\"\u6d77\u6597, \u8475\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g\",\"caption\":\"\u6d77\u6597, \u8475\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - 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-clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\/","og_locale":"ja_JP","og_type":"article","og_title":"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9","og_description":"Python \u3067\u306f\u3001clear() \u30e1\u30bd\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u30ea\u30b9\u30c8\u3001\u30bb\u30c3\u30c8\u3001\u8f9e\u66f8\u3092\u7a7a\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002 \u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u5168\u3066\u524a\u9664\u3059\u308b\u306b\u306f\u3001\u6b21\u306e\u3088\u3046\u306b\u66f8\u304d\u307e\u3059\u3002 list_name.clear() \u4f8b\u3048\u3070\u3001 my_list = [&hellip;]","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2024-03-21T12:05:44+00:00","article_modified_time":"2024-04-04T20:12:04+00:00","author":"\u6d77\u6597, \u8475","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u6d77\u6597, \u8475"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/","name":"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2024-03-21T12:05:44+00:00","dateModified":"2024-04-04T20:12:04+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/20cfc053626f4d45c0fa7a4e7964b5b6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"python clear\u30e1\u30bd\u30c3\u30c9\u306e\u4f7f\u3044\u65b9"}]},{"@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\/20cfc053626f4d45c0fa7a4e7964b5b6","name":"\u6d77\u6597, \u8475","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/25aec9a18954b6bfb7e4f7219c2923d62c6f0c9f4d5c0171228fe41751c0ab7a?s=96&d=mm&r=g","caption":"\u6d77\u6597, \u8475"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/kaitoaoi\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/python-clear%e3%83%a1%e3%82%bd%e3%83%83%e3%83%89%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96775","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=96775"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96775\/revisions"}],"predecessor-version":[{"id":309909,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/96775\/revisions\/309909"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=96775"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=96775"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=96775"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}