{"id":20687,"date":"2024-11-19T13:51:01","date_gmt":"2024-11-19T05:51:01","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20687\/"},"modified":"2024-11-19T13:51:01","modified_gmt":"2024-11-19T05:51:01","slug":"sublime%e6%80%8e%e4%b9%88%e5%ae%89%e8%a3%85python3","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20687\/","title":{"rendered":"sublime\u600e\u4e48\u5b89\u88c5Python3"},"content":{"rendered":"<blockquote><p>\n  \u5c06 python 3 \u5b89\u88c5\u5230 sublime text \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5 python 3 \u5e76\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5b89\u88c5 package control\uff08\u82e5 sublime text 2\uff09\u3002\u5728 sublime text \u4e2d\u5b89\u88c5 sublimerepl \u63d2\u4ef6\u3002\u914d\u7f6e sublimerepl\uff0c\u9009\u62e9 python 3 \u4f5c\u4e3a\u89e3\u91ca\u5668\u3002\u65b0\u5efa .py \u6587\u4ef6\uff0c\u7f16\u5199 python 3 \u4ee3\u7801\uff0c\u5e76\u6309\u5feb\u6377\u952e\u8fd0\u884c\u4ee3\u7801\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040313031875801.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u5b89\u88c5Python3\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u5b89\u88c5Python3\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5c06 Python 3 \u5b89\u88c5\u5230 Sublime Text<\/strong><\/p>\n<p><strong>\u5b89\u88c5\u6b65\u9aa4\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 Python 3\uff1a<\/strong>\u4ece Python \u5b98\u7f51\u4e0b\u8f7d\u5e76\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Python 3\u3002<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u5b89\u88c5\uff1a<\/strong>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>python3 --version<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5982\u679c\u770b\u5230\u7c7b\u4f3c\u4e8e &#8220;Python 3.X.X&#8221; \u7684\u8f93\u51fa\uff0c\u5219 Python 3 \u5df2\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<\/li>\n<li> <strong>\u5b89\u88c5 Package Control\uff1a<\/strong>\u5bf9\u4e8e Sublime Text 2\uff0c\u4ece\u4ee5\u4e0b\u94fe\u63a5\u5b89\u88c5 Package Control\uff1ahttps:\/\/packagecontrol.io\/installation<br \/> \u5bf9\u4e8e Sublime Text 3\uff0cPackage Control \u5df2\u9ed8\u8ba4\u5b89\u88c5\u3002<\/li>\n<li> <strong>\u5b89\u88c5 SublimeREPL\uff1a<\/strong>\u5728 Sublime Text \u4e2d\uff0c\u6309 Ctrl + Shift + P\uff08Windows\uff09\u6216 Cmd + Shift + P\uff08Mac\uff09\u6253\u5f00\u547d\u4ee4\u9762\u677f\u3002<br \/> \u8f93\u5165 &#8220;Install Package&#8221; \u5e76\u56de\u8f66\u3002<br \/> \u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165 &#8220;SublimeREPL&#8221; \u5e76\u56de\u8f66\u5b89\u88c5\u5305\u3002<\/li>\n<li> <strong>\u914d\u7f6e SublimeREPL\uff1a<\/strong>\u5728 SublimeREPL \u9009\u9879\u5361\u4e2d\uff0c\u786e\u4fdd &#8220;Python 3&#8221; \u5df2\u9009\u62e9\u4e3a Python \u89e3\u91ca\u5668\u3002<\/li>\n<\/ol>\n<p><strong>\u4f7f\u7528 Python 3\uff1a<\/strong><\/p>\n<ol>\n<li> <strong>\u65b0\u5efa\u6587\u4ef6\uff1a<\/strong>\u5728 Sublime Text \u4e2d\uff0c\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u5e76\u4fdd\u5b58\u4e3a .py \u6587\u4ef6\u3002<\/li>\n<li> <strong>\u7f16\u5199\u4ee3\u7801\uff1a<\/strong>\u5728\u6587\u4ef6\u4e2d\u7f16\u5199 Python 3 \u4ee3\u7801\u3002<\/li>\n<li> <strong>\u8fd0\u884c\u4ee3\u7801\uff1a<\/strong>\u6309 Ctrl + B\uff08Windows\uff09\u6216 Cmd + B\uff08Mac\uff09\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u4f60\u7684 Python 3 \u8def\u5f84\u5df2\u6dfb\u52a0\u5230\u7cfb\u7edf PATH \u53d8\u91cf\u3002<\/li>\n<li>\u5982\u679c SublimeREPL \u65e0\u6cd5\u8bc6\u522b Python 3\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u5b89\u88c5\u5b83\u3002<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528 Sublime Text \u4e2d\u7684 &#8220;Console&#8221; \u9762\u677f\u67e5\u770b\u8fd0\u884c\u7ed3\u679c\u548c\u4efb\u4f55\u9519\u8bef\u6d88\u606f\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u5b89\u88c5Python3\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>\u5c06 python 3 \u5b89\u88c5\u5230 sublime text \u7684\u6b65\u9aa4\uff1a\u5b89\u88c5 python 3 \u5e76\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u5b89\u88c5 package control\uff08\u82e5 sublime text 2\uff09\u3002\u5728 sublime text \u4e2d\u5b89\u88c5 sublimerepl \u63d2\u4ef6\u3002\u914d\u7f6e sublimerepl\uff0c\u9009\u62e9 python 3 \u4f5c\u4e3a\u89e3\u91ca\u5668\u3002\u65b0\u5efa .py \u6587\u4ef6\uff0c\u7f16\u5199 python 3 \u4ee3\u7801\uff0c\u5e76\u6309\u5feb\u6377\u952e\u8fd0\u884c\u4ee3\u7801\u3002 \u5982\u4f55\u5c06 Python 3 \u5b89\u88c5\u5230 Sublime Text \u5b89\u88c5\u6b65\u9aa4\uff1a \u5b89\u88c5 Python 3\uff1a\u4ece Python \u5b98\u7f51\u4e0b\u8f7d\u5e76\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684 Python 3\u3002 \u9a8c\u8bc1\u5b89\u88c5\uff1a\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a python3 &#8211;version \u767b\u5f55\u540e\u590d\u5236 \u5982\u679c\u770b\u5230\u7c7b\u4f3c\u4e8e &#8220;Python 3.X.X&#8221; \u7684\u8f93\u51fa\uff0c\u5219 Python 3 \u5df2\u6210\u529f\u5b89\u88c5\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b [&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-20687","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20687","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=20687"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20687\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}