{"id":21634,"date":"2024-11-19T13:44:30","date_gmt":"2024-11-19T05:44:30","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21634\/"},"modified":"2024-11-19T13:44:30","modified_gmt":"2024-11-19T05:44:30","slug":"sublime%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8cpython","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21634\/","title":{"rendered":"sublime\u600e\u4e48\u8fd0\u884cpython"},"content":{"rendered":"<p><strong>\u5982\u4f55\u5728  text \u4e2d\u8fd0\u884c  \u811a\u672c<\/strong><\/p>\n<p>Sublime Text \u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002\u8981\u8fd0\u884c Python \u811a\u672c\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<p><strong>1. \u5b89\u88c5 Python \u89e3\u91ca\u5668<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5 Python \u89e3\u91ca\u5668\u3002\u60a8\u53ef\u4ee5\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5b83\uff1ahttps:\/\/www.python.org\/downloads\/<\/li>\n<\/ul>\n<p><strong>2. \u914d\u7f6e Sublime Text<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 Sublime Text \u5e76\u524d\u5f80\u201cPreferences -&gt; Settings &#8211; User\u201d\u3002<\/li>\n<li>\u5728\u201csettings.json\u201d\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/li>\n<\/ul>\n<pre>{\n  \"python_interpreter\": \"C:\/Python39\/python.exe\"\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5c06\u201cC:\/Python39\/python.exe\u201d\u66ff\u6362\u4e3a Python \u89e3\u91ca\u5668\u7684\u5b9e\u9645\u8def\u5f84\u3002<\/li>\n<\/ul>\n<p><strong>3. \u8fd0\u884c Python \u811a\u672c<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u6253\u5f00\u8981\u8fd0\u884c\u7684 Python \u811a\u672c\u3002<\/li>\n<li>\u4fdd\u5b58\u811a\u672c\uff08\u4f8b\u5982\uff0cscript.py\uff09\u3002<\/li>\n<li>\u6309 Ctrl + B\uff08Windows \u548c Linux\uff09\u6216 Cmd + B\uff08macOS\uff09\u8fd0\u884c\u811a\u672c\u3002<\/li>\n<\/ul>\n<p>Sublime Text \u5c06\u4f7f\u7528\u914d\u7f6e\u7684 Python \u89e3\u91ca\u5668\u8fd0\u884c\u811a\u672c\u3002\u811a\u672c\u7684\u8f93\u51fa\u5c06\u663e\u793a\u5728 Sublime Text \u7684\u63a7\u5236\u53f0\u4e2d\u3002<\/p>\n<p><strong>4. \u9009\u62e9\u4ea4\u4e92\u5f0f\u63a7\u5236\u53f0<\/strong><\/p>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5728\u4ea4\u4e92\u5f0f\u63a7\u5236\u53f0\u4e2d\u8fd0\u884c Python \u4ee3\u7801\u7247\u6bb5\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684 Sublime Text \u6587\u4ef6\u3002<\/li>\n<li>\u6309 Ctrl + \uff08Windows \u548c Linux\uff09\u6216 Cmd + \uff08macOS\uff09\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u5c06\u6253\u5f00\u4e00\u4e2a\u4ea4\u4e92\u5f0f Python \u63a7\u5236\u53f0\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u952e\u5165\u548c\u6267\u884c\u4ee3\u7801\u7247\u6bb5\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728 text \u4e2d\u8fd0\u884c \u811a\u672c Sublime Text \u662f\u4e00\u4e2a\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002\u8981\u8fd0\u884c Python \u811a\u672c\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a 1. \u5b89\u88c5 Python \u89e3\u91ca\u5668 \u786e\u4fdd\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5 Python \u89e3\u91ca\u5668\u3002\u60a8\u53ef\u4ee5\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5b83\uff1ahttps:\/\/www.python.org\/downloads\/ 2. \u914d\u7f6e Sublime Text \u6253\u5f00 Sublime Text \u5e76\u524d\u5f80\u201cPreferences -&gt; Settings &#8211; User\u201d\u3002 \u5728\u201csettings.json\u201d\u6587\u4ef6\u4e2d\uff0c\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff1a { &#8220;python_interpreter&#8221;: &#8220;C:\/Python39\/python.exe&#8221; } \u767b\u5f55\u540e\u590d\u5236 \u5c06\u201cC:\/Python39\/python.exe\u201d\u66ff\u6362\u4e3a Python \u89e3\u91ca\u5668\u7684\u5b9e\u9645\u8def\u5f84\u3002 3. \u8fd0\u884c Python \u811a\u672c \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u6253\u5f00\u8981\u8fd0\u884c\u7684 Python \u811a\u672c\u3002 \u4fdd\u5b58\u811a\u672c\uff08\u4f8b\u5982\uff0cscript.py\uff09\u3002 \u6309 Ctrl + B\uff08Windows \u548c Linux\uff09\u6216 Cmd + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21634","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21634","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21634"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21634\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21634"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21634"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21634"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}