{"id":20663,"date":"2024-11-19T12:32:50","date_gmt":"2024-11-19T04:32:50","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20663\/"},"modified":"2024-11-19T12:32:50","modified_gmt":"2024-11-19T04:32:50","slug":"sublime%e6%80%8e%e4%b9%88%e7%94%a8python","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20663\/","title":{"rendered":"sublime\u600e\u4e48\u7528python"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u5728 sublime text \u4e2d\u4f7f\u7528 python\uff1f\u5b89\u88c5 python \u89e3\u91ca\u5668\u548c sublimerepl \u63d2\u4ef6\u3002\u65b0\u5efa python \u9879\u76ee\u548c\u6587\u4ef6\u3002\u6253\u5f00 sublimerepl \u63a7\u5236\u53f0\u5e76\u5207\u6362\u5230 python\u3002\u7c98\u8d34\u6216\u952e\u5165\u4ee3\u7801\u5e76\u6309 enter \u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040311331961411.jpg\" class=\"aligncenter\" title=\"sublime\u600e\u4e48\u7528python\u63d2\u56fe\" alt=\"sublime\u600e\u4e48\u7528python\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Sublime Text \u4e2d\u4f7f\u7528 Python<\/strong><\/p>\n<p><strong>\u7b80\u4ecb<\/strong><br \/>Sublime Text \u662f\u4e00\u4e2a\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u5e7f\u6cdb\u7684 Python \u652f\u6301\u3002\u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5982\u4f55\u5728 Sublime Text \u4e2d\u8bbe\u7f6e\u548c\u4f7f\u7528 Python \u73af\u5883\u3002<\/p>\n<p><strong>\u8bbe\u7f6e Python \u73af\u5883<\/strong><\/p>\n<ol>\n<li> <strong>\u5b89\u88c5 Python \u89e3\u91ca\u5668\uff1a<\/strong>\u5b89\u88c5 Python \u7684\u6700\u65b0\u7248\u672c\uff0c\u5e76\u5c06\u5b83\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002<\/li>\n<li> <strong>\u5b89\u88c5 SublimeREPL \u63d2\u4ef6\uff1a<\/strong>\u6b64\u63d2\u4ef6\u5141\u8bb8\u60a8\u5728 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u3002\u5728 Package Control \u4e2d\u641c\u7d22\u5e76\u5b89\u88c5 SublimeREPL\u3002<\/li>\n<\/ol>\n<p><strong>\u521b\u5efa Python \u9879\u76ee<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ol>\n<li> <strong>\u65b0\u5efa\u9879\u76ee\uff1a<\/strong>\u5728 Sublime Text \u4e2d\uff0c\u8f6c\u5230\u201c\u6587\u4ef6\u201d&gt;\u201c\u65b0\u5efa\u9879\u76ee\u201d\uff0c\u5e76\u9009\u62e9\u4e00\u4e2a\u76ee\u5f55\u4f5c\u4e3a\u9879\u76ee\u6587\u4ef6\u5939\u3002<\/li>\n<li> <strong>\u521b\u5efa Python \u6587\u4ef6\uff1a<\/strong>\u5728\u9879\u76ee\u6587\u4ef6\u5939\u4e2d\uff0c\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9\u201c\u65b0\u5efa\u6587\u4ef6\u201d\u3002\u5c06\u6587\u4ef6\u547d\u540d\u4e3a\u201cexample.py\u201d\u3002<\/li>\n<\/ol>\n<p><strong>\u8fd0\u884c Python \u4ee3\u7801<\/strong><\/p>\n<ol>\n<li> <strong>\u6253\u5f00 SublimeREPL\uff1a<\/strong>\u4f7f\u7528\u5feb\u6377\u952e\u201cCtrl+\u201d\uff08Windows\uff09\u6216\u201cCmd+\u201d\uff08macOS\uff09\u6253\u5f00 SublimeREPL \u63a7\u5236\u53f0\u3002<\/li>\n<li> <strong>\u5207\u6362\u5230 Python\uff1a<\/strong>\u5728\u63a7\u5236\u53f0\u4e2d\u952e\u5165\u201cPython\u201d\u6216\u201cPython3\u201d\uff0c\u7136\u540e\u6309 Enter\u3002<\/li>\n<li> <strong>\u8fd0\u884c\u4ee3\u7801\uff1a<\/strong>\u5c06 Python \u4ee3\u7801\u7c98\u8d34\u6216\u952e\u5165\u5230\u63a7\u5236\u53f0\u4e2d\u3002\u6309 Enter \u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ol>\n<p><strong>\u5176\u4ed6\u529f\u80fd<\/strong><\/p>\n<ul>\n<li> <strong>\u4ee3\u7801\u8865\u5168\uff1a<\/strong>Sublime Text \u63d0\u4f9b\u4e86 Python \u4ee3\u7801\u8865\u5168\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u5feb\u901f\u8f93\u5165\u4ee3\u7801\u3002<\/li>\n<li> <strong>\u8c03\u8bd5\uff1a<\/strong>\u60a8\u53ef\u4ee5\u4f7f\u7528 SublimeREPL \u8c03\u8bd5 Python \u4ee3\u7801\u3002\u8bbe\u7f6e\u65ad\u70b9\u5e76\u5728\u63a7\u5236\u53f0\u4e2d\u952e\u5165\u201c\u8c03\u8bd5\u201d\u4ee5\u5f00\u59cb\u8c03\u8bd5\u3002<\/li>\n<li> <strong>\u6784\u5efa\u7cfb\u7edf\uff1a<\/strong>Sublime Text \u5141\u8bb8\u60a8\u914d\u7f6e\u6784\u5efa\u7cfb\u7edf\u4ee5\u8fd0\u884c\u81ea\u5b9a\u4e49\u547d\u4ee4\u3002\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u6784\u5efa\u7cfb\u7edf\u6765\u8fd0\u884c Python \u811a\u672c\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528\u6280\u5de7<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528\u5feb\u6377\u952e\u201cCtrl+Enter\u201d\uff08Windows\uff09\u6216\u201cCmd+Enter\u201d\uff08macOS\uff09\u53ef\u4ee5\u5728\u4e0d\u6253\u5f00\u63a7\u5236\u53f0\u7684\u60c5\u51b5\u4e0b\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li>\u4f7f\u7528\u5feb\u6377\u952e\u201cCtrl+Shift+B\u201d\uff08Windows\uff09\u6216\u201cCmd+Shift+B\u201d\uff08macOS\uff09\u5728\u540e\u53f0\u8fd0\u884c Python \u811a\u672c\u3002<\/li>\n<li>\u5c06\u4ee3\u7801\u7247\u6bb5\u4fdd\u5b58\u4e3a\u5b8f\uff0c\u4ee5\u4fbf\u5feb\u901f\u63d2\u5165\u5e38\u7528\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u7528\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 sublime text \u4e2d\u4f7f\u7528 python\uff1f\u5b89\u88c5 python \u89e3\u91ca\u5668\u548c sublimerepl \u63d2\u4ef6\u3002\u65b0\u5efa python \u9879\u76ee\u548c\u6587\u4ef6\u3002\u6253\u5f00 sublimerepl \u63a7\u5236\u53f0\u5e76\u5207\u6362\u5230 python\u3002\u7c98\u8d34\u6216\u952e\u5165\u4ee3\u7801\u5e76\u6309 enter \u8fd0\u884c\u3002 \u5982\u4f55\u5728 Sublime Text \u4e2d\u4f7f\u7528 Python \u7b80\u4ecbSublime Text \u662f\u4e00\u4e2a\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u5e7f\u6cdb\u7684 Python \u652f\u6301\u3002\u672c\u6587\u5c06\u6307\u5bfc\u60a8\u5982\u4f55\u5728 Sublime Text \u4e2d\u8bbe\u7f6e\u548c\u4f7f\u7528 Python \u73af\u5883\u3002 \u8bbe\u7f6e Python \u73af\u5883 \u5b89\u88c5 Python \u89e3\u91ca\u5668\uff1a\u5b89\u88c5 Python \u7684\u6700\u65b0\u7248\u672c\uff0c\u5e76\u5c06\u5b83\u6dfb\u52a0\u5230\u7cfb\u7edf\u8def\u5f84\u4e2d\u3002 \u5b89\u88c5 SublimeREPL \u63d2\u4ef6\uff1a\u6b64\u63d2\u4ef6\u5141\u8bb8\u60a8\u5728 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\u3002\u5728 Package Control \u4e2d\u641c\u7d22\u5e76\u5b89\u88c5 SublimeREPL\u3002 \u521b\u5efa Python \u9879\u76ee \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-20663","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20663","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=20663"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20663\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}