{"id":394,"date":"2021-08-28T06:03:00","date_gmt":"2021-08-28T06:03:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=394"},"modified":"2021-08-28T06:03:00","modified_gmt":"2021-08-28T06:03:00","slug":"394","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/08\/28\/394\/","title":{"rendered":"VSCode RunCode Python \u8f93\u51fa\u4e2d\u6587\u4e71\u7801\u89e3\u51b3\u65b9\u6848"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/2938074038.png\" alt=\"code-run.png\" title=\"code-run.png\"><\/p>\n<h3>\u8bbe\u7f6e\u641c\u7d22 <code>code-runner.executorMap<\/code> ; \u5728 <code>settings.json<\/code> \u4e2d\u7f16\u8f91<\/h3>\n<pre><code>    \"python\": \"set PYTHONIOENCODING=utf8  &amp;&amp; python -u\",\n<\/code><\/pre>\n<p>\u4fee\u6539\u5176\u540e\u65b9\u5b57\u5178\u4e2d<code>python<\/code>\u5192\u53f7\u540e\u9762\u7684\u503c\u4e3a\uff1a\u201cset PYTHONIOENCODING=utf8 && python\u201d\uff0c\u76f4\u63a5\u590d\u5236\u7c98\u8d34\u5f15\u53f7\u53ca\u5f15\u53f7\u4e4b\u95f4\u7684\u5185\u5bb9\u7c98\u8d34\u5230\u539f\u6587\u7684\u5192\u53f7\u540e\u9762\u5c31\u884c\uff0c\u5982\u56fe\uff0c\u540c\u6837\u4e5f\u53ef\u4ee5\u4fee\u6539\u5176\u4ed6\u811a\u672c\u6e90\u4e8e\u7684\u547d\u4ee4\u884c\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/08\/2097796441.png\" alt=\"22.png\" title=\"22.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8bbe\u7f6e\u641c\u7d22 code-runner.executorMap ; \u5728 settings.json \u4e2d\u7f16\u8f91 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,12],"tags":[45,50],"class_list":["post-394","post","type-post","status-publish","format-standard","hentry","category-soft","category-learn","tag-python","tag-vscode"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/394\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}