{"id":20557,"date":"2024-11-19T11:29:40","date_gmt":"2024-11-19T03:29:40","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20557\/"},"modified":"2024-11-19T11:29:40","modified_gmt":"2024-11-19T03:29:40","slug":"sublime%e6%80%8e%e4%b9%88%e7%bc%96%e5%86%99python%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20557\/","title":{"rendered":"sublime\u600e\u4e48\u7f16\u5199python\u4ee3\u7801"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u7f16\u5199 python \u4ee3\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\u5b89\u88c5 sublime text\u3002\u521b\u5efa\u65b0\u9879\u76ee\u5e76\u4fdd\u5b58\u6587\u4ef6\u4e3a .py\u3002\u901a\u8fc7\u5feb\u6377\u952e ctrl + b (windows) \/ cmd + b (mac) \u8fd0\u884c python \u4ee3\u7801\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5 python \u63d2\u4ef6\u3001\u8bbe\u7f6e python \u89e3\u91ca\u5668\u3001\u542f\u7528\u81ea\u52a8\u7f29\u8fdb\u548c\u8bed\u6cd5\u9ad8\u4eae\u7b49\u65b9\u5f0f\u589e\u5f3a python \u4ee3\u7801\u7f16\u5199\u4f53\u9a8c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040305302050825.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u7f16\u5199python\u4ee3\u7801\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u7f16\u5199python\u4ee3\u7801\u63d2\u56fe\" \/><\/p>\n<p><strong>Sublime Text \u4e2d\u7f16\u5199 Python \u4ee3\u7801<\/strong><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4ee3\u7801\uff1f<\/strong><\/p>\n<p>Sublime Text \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002\u8981\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4ee3\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 Sublime Text<\/strong>\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5 Sublime Text\u3002<\/li>\n<li> <strong>\u521b\u5efa\u65b0\u9879\u76ee<\/strong>\uff1a\u542f\u52a8 Sublime Text\uff0c\u7136\u540e\u70b9\u51fb\u201c\u6587\u4ef6\u201d&gt;\u201c\u65b0\u5efa\u201d\u3002<\/li>\n<li> <strong>\u4fdd\u5b58\u6587\u4ef6\u4e3a .py<\/strong>\uff1a\u8f93\u5165\u4f60\u7684 Python \u4ee3\u7801\uff0c\u7136\u540e\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a\u5177\u6709 .py \u6269\u5c55\u540d\u7684\u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u201cmy_code.py\u201d\u3002<\/li>\n<li> <strong>\u8fd0\u884c Python \u4ee3\u7801<\/strong>\uff1a\u70b9\u51fb\u201c\u5de5\u5177\u201d&gt;\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201cPython\u201d\uff0c\u6216\u4f7f\u7528\u5feb\u6377\u952e Ctrl + B (Windows) \/ Cmd + B (Mac)\u3002<\/li>\n<\/ol>\n<p><strong>\u8bbe\u7f6e Sublime Text Python \u73af\u5883<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p>\u4e3a\u4e86\u589e\u5f3a Python \u4ee3\u7801\u7f16\u5199\u4f53\u9a8c\uff0c\u4f60\u53ef\u4ee5\u8bbe\u7f6e Sublime Text \u73af\u5883\uff1a<\/p>\n<ul>\n<li> <strong>\u5b89\u88c5 Python \u63d2\u4ef6<\/strong>\uff1a\u5b89\u88c5 Package Control \u5e76\u4f7f\u7528\u5b83\u5b89\u88c5 Python \u63d2\u4ef6\uff0c\u4f8b\u5982 Python Autocomplete\u3002<\/li>\n<li> <strong>\u8bbe\u7f6e Python \u89e3\u91ca\u5668<\/strong>\uff1a\u5bfc\u822a\u5230\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u8bbe\u7f6e\u201d&gt;\u201cPython\u201d\u5e76\u9009\u62e9\u8981\u4f7f\u7528\u7684 Python \u89e3\u91ca\u5668\u3002<\/li>\n<li> <strong>\u81ea\u52a8\u7f29\u8fdb<\/strong>\uff1a\u786e\u4fdd\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u8bbe\u7f6e\u201d&gt;\u201cPython\u201d&gt;\u201c\u4f7f\u7528 Tab \u7f29\u8fdb\u201d\u5df2\u542f\u7528\u3002<\/li>\n<li> <strong>\u8bed\u6cd5\u9ad8\u4eae<\/strong>\uff1a\u9a8c\u8bc1\u201c\u9996\u9009\u9879\u201d&gt;\u201c\u8bed\u6cd5\u9ad8\u4eae\u201d&gt;\u201cPython\u201d\u5df2\u542f\u7528\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u63d0\u793a<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u4f7f\u7528\u5feb\u6377\u952e<\/strong>\uff1a\u5b66\u4e60 Sublime Text \u7684\u6709\u7528\u5feb\u6377\u952e\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u5feb\u901f\u5b9a\u4e49\uff1aCtrl + Alt + F12 (Windows) \/ Cmd + Alt + F12 (Mac)<\/li>\n<li>\u8f93\u5165\u51fd\u6570\u6ce8\u91ca\uff1aCtrl + Shift + D (Windows) \/ Cmd + Shift + D (Mac)<\/li>\n<\/ul>\n<\/li>\n<li> <strong>\u5229\u7528\u4ee3\u7801\u7247\u6bb5<\/strong>\uff1a\u521b\u5efa\u81ea\u5df1\u7684\u4ee3\u7801\u7247\u6bb5\u6216\u5b89\u88c5\u9884\u5b9a\u4e49\u7684\u7247\u6bb5\u3002<\/li>\n<li> <strong>\u8c03\u8bd5\u4ee3\u7801<\/strong>\uff1a\u4f7f\u7528 Sublime Text \u7684\u5185\u7f6e\u8c03\u8bd5\u5668\u6216\u8005\u5b89\u88c5\u7b2c\u4e09\u65b9\u8c03\u8bd5\u5668\u3002<\/li>\n<li> <strong>\u83b7\u5f97\u5e2e\u52a9<\/strong>\uff1a\u8bbf\u95ee Sublime Text \u793e\u533a\u8bba\u575b\u6216\u5b98\u65b9\u6587\u6863\u4ee5\u5bfb\u6c42\u652f\u6301\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u7f16\u5199\u4ee3\u7801\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\u7f16\u5199 python \u4ee3\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a\u5b89\u88c5 sublime text\u3002\u521b\u5efa\u65b0\u9879\u76ee\u5e76\u4fdd\u5b58\u6587\u4ef6\u4e3a .py\u3002\u901a\u8fc7\u5feb\u6377\u952e ctrl + b (windows) \/ cmd + b (mac) \u8fd0\u884c python \u4ee3\u7801\u3002\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5 python \u63d2\u4ef6\u3001\u8bbe\u7f6e python \u89e3\u91ca\u5668\u3001\u542f\u7528\u81ea\u52a8\u7f29\u8fdb\u548c\u8bed\u6cd5\u9ad8\u4eae\u7b49\u65b9\u5f0f\u589e\u5f3a python \u4ee3\u7801\u7f16\u5199\u4f53\u9a8c\u3002 Sublime Text \u4e2d\u7f16\u5199 Python \u4ee3\u7801 \u5982\u4f55\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4ee3\u7801\uff1f Sublime Text \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002\u8981\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4ee3\u7801\uff0c\u8bf7\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u5b89\u88c5 Sublime Text\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5 Sublime Text\u3002 \u521b\u5efa\u65b0\u9879\u76ee\uff1a\u542f\u52a8 Sublime Text\uff0c\u7136\u540e\u70b9\u51fb\u201c\u6587\u4ef6\u201d&gt;\u201c\u65b0\u5efa\u201d\u3002 [&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-20557","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20557","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=20557"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20557\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}