{"id":21504,"date":"2024-11-19T17:30:43","date_gmt":"2024-11-19T09:30:43","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21504\/"},"modified":"2024-11-19T17:30:43","modified_gmt":"2024-11-19T09:30:43","slug":"sublime%e6%80%8e%e4%b9%88%e7%94%a8python%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21504\/","title":{"rendered":"sublime\u600e\u4e48\u7528python\u4ee3\u7801"},"content":{"rendered":"<blockquote><p>\n  \u5728 sublime text \u4e2d\u8fd0\u884c python \u4ee3\u7801\u9700\u8981\uff1a1. \u5b89\u88c5 sublime text\uff1b2. \u5b89\u88c5 python \u89e3\u91ca\u5668\uff08\u8def\u5f84\u4e3a \/usr\/local\/bin\/python3\uff09\uff1b3. \u5728 sublime text \u4e2d\u8bbe\u7f6e python \u73af\u5883\uff08\u7528\u6237\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u7279\u5b9a\u4ee3\u7801\uff09\uff1b4. \u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u7c98\u8d34\u6216\u952e\u5165 python \u4ee3\u7801\uff1b5. \u8f6c\u5230\u201c\u5de5\u5177\u201d &gt; \u201c\u8fd0\u884c\u547d\u4ee4\u201d\uff0c\u8f93\u5165\u201cpython\u201d\u5e76\u6309\u56de\u8f66\uff1b\u6b64\u5916\uff0csublime text \u5185\u7f6e\u4ea4\u4e92\u5f0f python \u89e3\u91ca\u5668 (repl)\uff0c\u53ef\u901a\u8fc7\u201c\u89c6\u56fe\u201d\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053022423694883.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u7528python\u4ee3\u7801\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u7528python\u4ee3\u7801\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Sublime Text \u8fd0\u884c Python \u4ee3\u7801<\/strong><\/p>\n<p><strong>\u5165\u95e8\uff1a<\/strong><\/p>\n<p>\u5728 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u9700\u8981\u5b8c\u6210\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u5b89\u88c5 Sublime Text<\/li>\n<li>\u5b89\u88c5 Python \u89e3\u91ca\u5668<\/li>\n<\/ol>\n<p><strong>\u5b89\u88c5 Python \u89e3\u91ca\u5668\uff1a<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u8bbf\u95ee Python \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/www..org\/downloads\/<\/li>\n<li>\u9009\u62e9\u4e0e\u60a8\u7684\u64cd\u4f5c\u7cfb\u7edf\u548c\u67b6\u6784\u76f8\u5bf9\u5e94\u7684\u7248\u672c<\/li>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5 Python<\/li>\n<\/ul>\n<p><strong>\u5728 Sublime Text \u4e2d\u8bbe\u7f6e Python \u73af\u5883\uff1a<\/strong><\/p>\n<ol>\n<li>\u6253\u5f00 Sublime Text<\/li>\n<li>\u8f6c\u5230\u201c\u9996\u9009\u9879\u201d &gt; \u201c\u8bbe\u7f6e\u201d<\/li>\n<li>\u5728\u201c\u7528\u6237\u8bbe\u7f6e\u201d\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/li>\n<\/ol>\n<pre>{\n    \"repl_python_interpreter\": \"\/usr\/local\/bin\/python3\",\n    \"repl_python_working_dir\": \"~\",\n    \"repl_python_console_font_size\": 12\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5c06 \/usr\/local\/bin\/python3 \u66ff\u6362\u4e3a Python \u89e3\u91ca\u5668\u7684\u5b9e\u9645\u8def\u5f84<\/li>\n<li>\u53ef\u9009\uff1a\u5c06 ~ \u66ff\u6362\u4e3a\u60a8\u5e0c\u671b Sublime Text \u5728\u8fd0\u884c Python \u4ee3\u7801\u65f6\u4f7f\u7528\u7684\u5de5\u4f5c\u76ee\u5f55<\/li>\n<\/ul>\n<p><strong>\u8fd0\u884c Python \u4ee3\u7801\uff1a<\/strong><\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 Sublime Text \u6587\u4ef6<\/li>\n<li>\u5c06 Python \u4ee3\u7801\u7c98\u8d34\u6216\u952e\u5165\u5230\u6587\u4ef6\u4e2d<\/li>\n<li>\u8f6c\u5230\u201c\u5de5\u5177\u201d &gt; \u201c\u8fd0\u884c\u547d\u4ee4\u201d<\/li>\n<li>\u8f93\u5165 python \u5e76\u6309\u56de\u8f66\u952e<\/li>\n<\/ol>\n<p><strong>\u4ea4\u4e92\u5f0f Python \u89e3\u91ca\u5668\uff08REPL\uff09\uff1a<\/strong><\/p>\n<p>Sublime Text \u8fd8\u5185\u7f6e\u4e86\u4ea4\u4e92\u5f0f Python \u89e3\u91ca\u5668 (REPL)\u3002REPL \u5141\u8bb8\u60a8\u76f4\u63a5\u5728 Sublime Text \u4e2d\u8f93\u5165\u548c\u6267\u884c Python \u8bed\u53e5\u3002<\/p>\n<p>\u8981\u6253\u5f00 REPL\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4e4b\u4e00\uff1a<\/p>\n<ul>\n<li>\u8f6c\u5230\u201c\u89c6\u56fe\u201d &gt; \u201c\u663e\u793a REPL\u201d<\/li>\n<li>\u6309 Ctrl + Alt + P (Windows) \u6216 Cmd + Alt + P (Mac) \u5e76\u8f93\u5165 REPL<\/li>\n<\/ul>\n<p>\u5728 REPL \u4e2d\uff0c\u60a8\u53ef\u4ee5\u6267\u884c\u4efb\u4f55 Python \u4ee3\u7801\uff0c\u5e76\u4f1a\u7acb\u5373\u83b7\u5f97\u7ed3\u679c\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u7528\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\u8fd0\u884c python \u4ee3\u7801\u9700\u8981\uff1a1. \u5b89\u88c5 sublime text\uff1b2. \u5b89\u88c5 python \u89e3\u91ca\u5668\uff08\u8def\u5f84\u4e3a \/usr\/local\/bin\/python3\uff09\uff1b3. \u5728 sublime text \u4e2d\u8bbe\u7f6e python \u73af\u5883\uff08\u7528\u6237\u8bbe\u7f6e\u4e2d\u6dfb\u52a0\u7279\u5b9a\u4ee3\u7801\uff09\uff1b4. \u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u7c98\u8d34\u6216\u952e\u5165 python \u4ee3\u7801\uff1b5. \u8f6c\u5230\u201c\u5de5\u5177\u201d &gt; \u201c\u8fd0\u884c\u547d\u4ee4\u201d\uff0c\u8f93\u5165\u201cpython\u201d\u5e76\u6309\u56de\u8f66\uff1b\u6b64\u5916\uff0csublime text \u5185\u7f6e\u4ea4\u4e92\u5f0f python \u89e3\u91ca\u5668 (repl)\uff0c\u53ef\u901a\u8fc7\u201c\u89c6\u56fe\u201d \u5982\u4f55\u4f7f\u7528 Sublime Text \u8fd0\u884c Python \u4ee3\u7801 \u5165\u95e8\uff1a \u5728 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u9700\u8981\u5b8c\u6210\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u5b89\u88c5 Sublime Text \u5b89\u88c5 Python \u89e3\u91ca\u5668 \u5b89\u88c5 Python \u89e3\u91ca\u5668\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u8bbf\u95ee Python [&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-21504","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21504","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=21504"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21504\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}