{"id":20727,"date":"2024-11-19T15:09:48","date_gmt":"2024-11-19T07:09:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20727\/"},"modified":"2024-11-19T15:09:48","modified_gmt":"2024-11-19T07:09:48","slug":"sublime%e8%bf%90%e8%a1%8cpython%e4%bb%a3%e7%a0%81%e6%8c%89%e5%93%aa%e4%b8%aa%e9%94%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20727\/","title":{"rendered":"sublime\u8fd0\u884cpython\u4ee3\u7801\u6309\u54ea\u4e2a\u952e"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u8fd0\u884c python \u4ee3\u7801\u7684\u5feb\u6377\u952e\u4e3a\uff1awindows \u548c linux: ctrl + bmac: cmd + b\u5c06\u5149\u6807\u653e\u7f6e\u5728\u4ee3\u7801\u4e2d\u3002\u6309\u4e0b\u5feb\u6377\u952e\u3002\u4ee3\u7801\u5c06\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u7684 python \u89e3\u91ca\u5668\u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040315541778916.jpg\" class=\"aligncenter\" title=\"sublime\u8fd0\u884cpython\u4ee3\u7801\u6309\u54ea\u4e2a\u952e\u63d2\u56fe\" alt=\"sublime\u8fd0\u884cpython\u4ee3\u7801\u6309\u54ea\u4e2a\u952e\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u7684\u5feb\u6377\u952e<\/strong><\/p>\n<p>Sublime Text \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u5feb\u6377\u952e\u8fd0\u884c Python \u4ee3\u7801\uff1a<\/p>\n<ul>\n<li> <strong>Windows \u548c Linux:<\/strong> Ctrl + B<\/li>\n<li> <strong>Mac:<\/strong> Cmd + B<\/li>\n<\/ul>\n<p><strong>\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\uff1a<\/strong><\/p>\n<ol>\n<li>\u6253\u5f00\u4e00\u4e2a\u5305\u542b Python \u4ee3\u7801\u7684 Sublime Text \u6587\u4ef6\u3002<\/li>\n<li>\u786e\u4fdd\u4ee3\u7801\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\u6216\u3002<\/li>\n<li>\u5c06\u5149\u6807\u653e\u7f6e\u5728\u4ee3\u7801\u4e2d\u4efb\u4f55\u4f4d\u7f6e\u3002<\/li>\n<li>\u6309\u4e0b\u4e0a\u8ff0\u5feb\u6377\u952e\uff08Ctrl + B \u6216 Cmd + B\uff09\u3002<\/li>\n<\/ol>\n<p>\u8fd9\u6837\u505a\u5c06\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u7684 Python \u89e3\u91ca\u5668\u8fd0\u884c\u4ee3\u7801\u3002\u8f93\u51fa\u5c06\u5728 Sublime Text \u7684\u5e95\u90e8\u9762\u677f\u4e2d\u663e\u793a\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>\u5176\u4ed6\u8bbe\u7f6e\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u81ea\u5b9a\u4e49\u5feb\u6377\u952e:<\/strong> \u53ef\u4ee5\u5728 Sublime Text \u7684\u9996\u9009\u9879\u8bbe\u7f6e\u4e2d\u81ea\u5b9a\u4e49\u5feb\u6377\u952e\uff0c\u6309\u7167\u4ee5\u4e0b\u8def\u5f84\u8fdb\u884c\u8bbe\u7f6e\uff1aPreferences &gt; Key Bindings &gt; Default (OSX, Windows, Linux).-keymap<\/li>\n<li> <strong>\u66f4\u6539\u89e3\u91ca\u5668:<\/strong> \u53ef\u4ee5\u5728 Sublime Text \u7684\u9996\u9009\u9879\u8bbe\u7f6e\u4e2d\u66f4\u6539\u7528\u4e8e\u8fd0\u884c Python \u4ee3\u7801\u7684\u89e3\u91ca\u5668\uff0c\u6309\u7167\u4ee5\u4e0b\u8def\u5f84\u8fdb\u884c\u8bbe\u7f6e\uff1aPreferences &gt; Settings &#8211; User\u3002\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9\uff0c\u5e76\u5c06\u5176\u66ff\u6362\u4e3a\u6b63\u786e\u7684\u89e3\u91ca\u5668\u8def\u5f84\uff1a<\/li>\n<\/ul>\n<pre>\"python_interpreter\": \"\/path\/to\/python\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li> <strong>\u4f7f\u7528\u5305\u7ba1\u7406\u5668:<\/strong> \u4e5f\u53ef\u4ee5\u5b89\u88c5\u5305\u7ba1\u7406\u5668\uff0c\u4f8b\u5982 Package Control\uff0c\u5b83\u63d0\u4f9b\u4e86\u7528\u4e8e\u8fd0\u884c Python \u4ee3\u7801\u548c\u7ba1\u7406 Python \u73af\u5883\u7684\u5176\u4ed6\u5feb\u6377\u952e\u548c\u529f\u80fd\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8fd0\u884c\u4ee3\u7801\u6309\u54ea\u4e2a\u952e\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>\u5728 sublime text \u4e2d\u8fd0\u884c python \u4ee3\u7801\u7684\u5feb\u6377\u952e\u4e3a\uff1awindows \u548c linux: ctrl + bmac: cmd + b\u5c06\u5149\u6807\u653e\u7f6e\u5728\u4ee3\u7801\u4e2d\u3002\u6309\u4e0b\u5feb\u6377\u952e\u3002\u4ee3\u7801\u5c06\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u7684 python \u89e3\u91ca\u5668\u8fd0\u884c\u3002 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u7684\u5feb\u6377\u952e Sublime Text \u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u5feb\u6377\u952e\u8fd0\u884c Python \u4ee3\u7801\uff1a Windows \u548c Linux: Ctrl + B Mac: Cmd + B \u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\uff1a \u6253\u5f00\u4e00\u4e2a\u5305\u542b Python \u4ee3\u7801\u7684 Sublime Text \u6587\u4ef6\u3002 \u786e\u4fdd\u4ee3\u7801\u6ca1\u6709\u8bed\u6cd5\u9519\u8bef\u6216\u3002 \u5c06\u5149\u6807\u653e\u7f6e\u5728\u4ee3\u7801\u4e2d\u4efb\u4f55\u4f4d\u7f6e\u3002 \u6309\u4e0b\u4e0a\u8ff0\u5feb\u6377\u952e\uff08Ctrl + B \u6216 Cmd + B\uff09\u3002 \u8fd9\u6837\u505a\u5c06\u4f7f\u7528\u7cfb\u7edf\u9ed8\u8ba4\u7684 Python \u89e3\u91ca\u5668\u8fd0\u884c\u4ee3\u7801\u3002\u8f93\u51fa\u5c06\u5728 [&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-20727","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20727","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=20727"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20727\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}