{"id":16594,"date":"2025-04-18T23:02:29","date_gmt":"2025-04-18T15:02:29","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/16594.html"},"modified":"2025-04-18T23:02:29","modified_gmt":"2025-04-18T15:02:29","slug":"vscode%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%94%a8%e4%ba%86plt-show%e4%b8%ba%e4%bb%80%e4%b9%88%e4%b8%8d%e6%98%be%e7%a4%ba%e5%9b%be%e7%89%87","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/16594.html","title":{"rendered":"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247"},"content":{"rendered":"<h3>vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247<\/h3>\n<p>\u5728\u4f7f\u7528 VS Code \u670d\u52a1\u5668&#xff08;\u6bd4\u5982\u901a\u8fc7\u8fdc\u7a0b SSH \u6216 WSL \u8fd0\u884c\u4ee3\u7801&#xff09;\u65f6&#xff0c;plt.show() \u4e0d\u663e\u793a\u56fe\u7247\u7684\u95ee\u9898\u901a\u5e38\u4e0e\u4ee5\u4e0b\u51e0\u4e2a\u539f\u56e0\u6709\u5173&#xff1a;<\/p>\n<li>\n<p>\u7f3a\u5c11\u56fe\u5f62\u754c\u9762\u652f\u6301<\/p>\n<p>\u670d\u52a1\u5668\u73af\u5883\u901a\u5e38\u662f\u65e0\u56fe\u5f62\u754c\u9762\u7684&#xff08;headless&#xff09;&#xff0c;\u800c matplotlib \u7684 plt.show() \u9ed8\u8ba4\u9700\u8981\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762&#xff08;GUI&#xff09;\u540e\u7aef\u6765\u6e32\u67d3\u56fe\u7247&#xff0c;\u4f8b\u5982 Tkinter\u3001Qt \u7b49\u3002\u5728\u670d\u52a1\u5668\u4e0a&#xff0c;\u8fd9\u4e9b GUI \u540e\u7aef\u53ef\u80fd\u672a\u5b89\u88c5\u6216\u65e0\u6cd5\u8fd0\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>Matplotlib \u540e\u7aef\u914d\u7f6e\u95ee\u9898<\/p>\n<p>matplotlib \u9ed8\u8ba4\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u4ea4\u4e92\u5f0f\u540e\u7aef&#xff08;\u6bd4\u5982 TkAgg&#xff09;&#xff0c;\u4f46\u5728\u65e0\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a&#xff0c;\u8fd9\u79cd\u540e\u7aef\u65e0\u6cd5\u5de5\u4f5c\u3002<\/p>\n<\/li>\n<li>\n<p>VS Code \u7684\u8f93\u51fa\u9650\u5236<\/p>\n<p>\u5982\u679c\u4f60\u5728 VS Code \u7684\u7ec8\u7aef\u6216\u7b14\u8bb0\u672c\u4e2d\u8fd0\u884c\u4ee3\u7801&#xff0c;plt.show() \u7684\u8f93\u51fa\u53ef\u80fd\u4e0d\u4f1a\u76f4\u63a5\u663e\u793a&#xff0c;\u56e0\u4e3a VS Code \u7684\u73af\u5883\u53ef\u80fd\u6ca1\u6709\u6b63\u786e\u914d\u7f6e\u6765\u6e32\u67d3\u56fe\u5f62\u3002<\/p>\n<h3>\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<h5>1. \u4fdd\u5b58\u56fe\u7247\u5230\u6587\u4ef6<\/h5>\n<p>\u5728\u670d\u52a1\u5668\u73af\u5883\u4e0b&#xff0c;\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u5c06\u56fe\u7247\u4fdd\u5b58\u5230\u6587\u4ef6\u800c\u4e0d\u662f\u76f4\u63a5\u663e\u793a\u3002\u7136\u540e\u4f60\u53ef\u4ee5\u4e0b\u8f7d\u6587\u4ef6\u672c\u5730\u67e5\u770b\u67e5\u770b\u3002\u4f8b\u5982&#xff1a;<\/p>\n<p> <span class=\"token keyword\">import<\/span> matplotlib<span class=\"token punctuation\">.<\/span>pyplot <span class=\"token keyword\">as<\/span> plt<\/p>\n<p>plt<span class=\"token punctuation\">.<\/span>plot<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">6<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\nplt<span class=\"token punctuation\">.<\/span>savefig<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;output.png&#039;<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u4fdd\u5b58\u4e3a PNG \u6587\u4ef6<\/span><br \/>\n<span class=\"token comment\"># plt.show()  # \u4e0d\u9700\u8981\u8fd9\u4e00\u884c<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150228-6802698422732.png\" alt=\"image-20250320203422966.png\" \/><\/p>\n<li>\u5207\u6362 Matplotlib \u540e\u7aef<\/li>\n<p>\u5982\u679c\u9700\u8981\u5b9e\u65f6\u663e\u793a\u56fe\u7247&#xff0c;\u53ef\u4ee5\u5c1d\u8bd5\u5c06 matplotlib \u7684\u540e\u7aef\u5207\u6362\u5230\u975e\u4ea4\u4e92\u5f0f\u540e\u7aef&#xff08;\u5982 Agg&#xff09;&#xff0c;\u7136\u540e\u7ed3\u5408\u4fdd\u5b58\u6587\u4ef6\u4f7f\u7528&#xff1a;<\/p>\n<p> <span class=\"token keyword\">import<\/span> matplotlib<br \/>\nmatplotlib<span class=\"token punctuation\">.<\/span>use<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;Agg&#039;<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u5728\u5bfc\u5165 pyplot \u4e4b\u524d\u8bbe\u7f6e<\/span><br \/>\n<span class=\"token keyword\">import<\/span> matplotlib<span class=\"token punctuation\">.<\/span>pyplot <span class=\"token keyword\">as<\/span> plt<\/p>\n<p>plt<span class=\"token punctuation\">.<\/span>plot<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">6<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\nplt<span class=\"token punctuation\">.<\/span>savefig<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#039;output.png&#039;<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h5>3. \u4f7f\u7528 VS Code \u7684 Jupyter \u6269\u5c55<\/h5>\n<p>\u5982\u679c\u4f60\u5728 VS Code \u4e2d\u4f7f\u7528 Jupyter Notebook \u6216 Jupyter \u63d2\u4ef6&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u5728\u4ee3\u7801\u5355\u5143\u683c\u4e2d\u8fd0\u884c\u7ed8\u56fe\u4ee3\u7801&#xff0c;\u5e76\u786e\u4fdd\u52a0\u4e0a %matplotlib inline&#xff08;\u867d\u7136\u8fd9\u66f4\u5e38\u89c1\u4e8e\u672c\u5730 Jupyter&#xff0c;\u4f46 VS Code \u6709\u7c7b\u4f3c\u652f\u6301&#xff09;&#xff1a;<\/p>\n<p> <span class=\"token operator\">%<\/span>matplotlib inline<br \/>\n<span class=\"token keyword\">import<\/span> matplotlib<span class=\"token punctuation\">.<\/span>pyplot <span class=\"token keyword\">as<\/span> plt<\/p>\n<p>plt<span class=\"token punctuation\">.<\/span>plot<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">3<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token number\">6<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><br \/>\nplt<span class=\"token punctuation\">.<\/span>show<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>plt.plot([1, 2, 3], [4, 5, 6]) plt.show()<\/p>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb723\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u670d\u52a1\u5668\u73af\u5883\u901a\u5e38\u662f\u65e0\u56fe\u5f62\u754c\u9762\u7684\uff08headless\uff09\uff0c\u800c matplotlib \u7684 plt.show() \u9ed8\u8ba4\u9700\u8981\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u540e\u7aef\u6765\u6e32\u67d3\u56fe\u7247\uff0c\u4f8b\u5982 Tkinter\u3001Qt \u7b49\u3002\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u4e9b GUI \u540e\u7aef\u53ef\u80fd\u672a\u5b89\u88c5\u6216\u65e0\u6cd5\u8fd0\u884c\u3002\u5982\u679c\u4f60\u5728 VS Code \u7684\u7ec8\u7aef\u6216\u7b14\u8bb0\u672c\u4e2d\u8fd0\u884c\u4ee3\u7801\uff0cplt.show() \u7684\u8f93\u51fa\u53ef\u80fd\u4e0d\u4f1a\u76f4\u63a5\u663e\u793a\uff0c\u56e0\u4e3a VS Code \u7684\u73af\u5883\u53ef\u80fd\u6ca1\u6709\u6b63\u786e\u914d\u7f6e\u6765\u6e32\u67d3\u56fe\u5f62\u3002matplotlib \u9ed8\u8ba4\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u4ea4\u4e92\u5f0f\u540e\u7aef\uff08\u6bd4\u5982 TkAgg\uff09\uff0c\u4f46\u5728\u65e0\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u79cd\u540e\u7aef\u65e0\u6cd5\u5de5\u4f5c\u3002_\u670d\u52a1\u5668 plt show\u4e0d\u663e\u793a<\/p>\n","protected":false},"author":2,"featured_media":16593,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[70,76,43],"topic":[],"class_list":["post-16594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ide","tag-vscode","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/16594.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb723\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u670d\u52a1\u5668\u73af\u5883\u901a\u5e38\u662f\u65e0\u56fe\u5f62\u754c\u9762\u7684\uff08headless\uff09\uff0c\u800c matplotlib \u7684 plt.show() \u9ed8\u8ba4\u9700\u8981\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u540e\u7aef\u6765\u6e32\u67d3\u56fe\u7247\uff0c\u4f8b\u5982 Tkinter\u3001Qt \u7b49\u3002\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u4e9b GUI \u540e\u7aef\u53ef\u80fd\u672a\u5b89\u88c5\u6216\u65e0\u6cd5\u8fd0\u884c\u3002\u5982\u679c\u4f60\u5728 VS Code \u7684\u7ec8\u7aef\u6216\u7b14\u8bb0\u672c\u4e2d\u8fd0\u884c\u4ee3\u7801\uff0cplt.show() \u7684\u8f93\u51fa\u53ef\u80fd\u4e0d\u4f1a\u76f4\u63a5\u663e\u793a\uff0c\u56e0\u4e3a VS Code \u7684\u73af\u5883\u53ef\u80fd\u6ca1\u6709\u6b63\u786e\u914d\u7f6e\u6765\u6e32\u67d3\u56fe\u5f62\u3002matplotlib \u9ed8\u8ba4\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u4ea4\u4e92\u5f0f\u540e\u7aef\uff08\u6bd4\u5982 TkAgg\uff09\uff0c\u4f46\u5728\u65e0\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u79cd\u540e\u7aef\u65e0\u6cd5\u5de5\u4f5c\u3002_\u670d\u52a1\u5668 plt show\u4e0d\u663e\u793a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/16594.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T15:02:29+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150228-6802698422732.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16594.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/16594.html\",\"name\":\"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T15:02:29+00:00\",\"dateModified\":\"2025-04-18T15:02:29+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/16594.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/16594.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/16594.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/16594.html","og_locale":"zh_CN","og_type":"article","og_title":"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb723\u6b21\uff0c\u70b9\u8d5e9\u6b21\uff0c\u6536\u85cf4\u6b21\u3002\u670d\u52a1\u5668\u73af\u5883\u901a\u5e38\u662f\u65e0\u56fe\u5f62\u754c\u9762\u7684\uff08headless\uff09\uff0c\u800c matplotlib \u7684 plt.show() \u9ed8\u8ba4\u9700\u8981\u4e00\u4e2a\u56fe\u5f62\u7528\u6237\u754c\u9762\uff08GUI\uff09\u540e\u7aef\u6765\u6e32\u67d3\u56fe\u7247\uff0c\u4f8b\u5982 Tkinter\u3001Qt \u7b49\u3002\u5728\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u4e9b GUI \u540e\u7aef\u53ef\u80fd\u672a\u5b89\u88c5\u6216\u65e0\u6cd5\u8fd0\u884c\u3002\u5982\u679c\u4f60\u5728 VS Code \u7684\u7ec8\u7aef\u6216\u7b14\u8bb0\u672c\u4e2d\u8fd0\u884c\u4ee3\u7801\uff0cplt.show() \u7684\u8f93\u51fa\u53ef\u80fd\u4e0d\u4f1a\u76f4\u63a5\u663e\u793a\uff0c\u56e0\u4e3a VS Code \u7684\u73af\u5883\u53ef\u80fd\u6ca1\u6709\u6b63\u786e\u914d\u7f6e\u6765\u6e32\u67d3\u56fe\u5f62\u3002matplotlib \u9ed8\u8ba4\u4f7f\u7528\u7684\u53ef\u80fd\u662f\u4ea4\u4e92\u5f0f\u540e\u7aef\uff08\u6bd4\u5982 TkAgg\uff09\uff0c\u4f46\u5728\u65e0\u56fe\u5f62\u754c\u9762\u7684\u670d\u52a1\u5668\u4e0a\uff0c\u8fd9\u79cd\u540e\u7aef\u65e0\u6cd5\u5de5\u4f5c\u3002_\u670d\u52a1\u5668 plt show\u4e0d\u663e\u793a","og_url":"https:\/\/www.wsisp.com\/helps\/16594.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T15:02:29+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418150228-6802698422732.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/16594.html","url":"https:\/\/www.wsisp.com\/helps\/16594.html","name":"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T15:02:29+00:00","dateModified":"2025-04-18T15:02:29+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/16594.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/16594.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/16594.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"vscode\u670d\u52a1\u5668\u7528\u4e86plt.show()\u4e3a\u4ec0\u4e48\u4e0d\u663e\u793a\u56fe\u7247"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=16594"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/16594\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/16593"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=16594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=16594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=16594"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=16594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}