{"id":20742,"date":"2024-11-19T16:59:05","date_gmt":"2024-11-19T08:59:05","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20742\/"},"modified":"2024-11-19T16:59:05","modified_gmt":"2024-11-19T08:59:05","slug":"%e5%a6%82%e4%bd%95%e7%94%a8sublime%e5%86%99python","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20742\/","title":{"rendered":"\u5982\u4f55\u7528sublime\u5199python"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u5728 sublime text \u7f16\u8f91\u5668\u4e2d\u7f16\u5199 python\uff1f\u5b89\u88c5 python\u3002\u521b\u5efa python \u6587\u4ef6 (.py)\u3002\u7f16\u5199 python \u4ee3\u7801\u3002\u4f7f\u7528\u63a7\u5236\u53f0\u6216\u5916\u90e8\u7ec8\u7aef\u8fd0\u884c\u4ee3\u7801\u3002\u5229\u7528 sublime text \u7684\u529f\u80fd\uff08\u4ee3\u7801\u6bb5\u3001\u81ea\u52a8\u5b8c\u6210\u3001\u7f29\u8fdb\u3001\u8bed\u6cd5\u68c0\u67e5\u3001\u8c03\u8bd5\uff09\u589e\u5f3a\u5f00\u53d1\u4f53\u9a8c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040317032168203.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u7528sublime\u5199python\u63d2\u56fe\" alt=\"\u5982\u4f55\u7528sublime\u5199python\u63d2\u56fe\" \/><\/p>\n<p><strong>\u4f7f\u7528 Sublime Text \u7f16\u8f91\u5668\u7f16\u5199 Python<\/strong><\/p>\n<p>Sublime Text \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u7528\u4e8e\u7f16\u5199\u5404\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002<\/p>\n<p><strong>\u5b89\u88c5 Python<\/strong><\/p>\n<p>\u5728\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4e4b\u524d\uff0c\u9700\u8981\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5 Python\u3002\u8bbf\u95ee Python \u5b98\u7f51 (https:\/\/www..org\/) \u5e76\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>\u521b\u5efa Python \u6587\u4ef6<\/strong><\/p>\n<p>\u5728 Sublime Text \u4e2d\uff0c\u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u4fdd\u5b58\u4e3a\u5177\u6709 .py \u6269\u5c55\u540d\u7684 Python \u6587\u4ef6\uff0c\u4f8b\u5982 hello.py\u3002<\/p>\n<p><strong>\u7f16\u5199 Python \u4ee3\u7801<\/strong><\/p>\n<p>\u5728 Python \u6587\u4ef6\u4e2d\u7f16\u5199\u60a8\u7684 Python \u4ee3\u7801\u3002Sublime Text \u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\uff0c\u81ea\u52a8\u5b8c\u6210\u548c\u7f29\u8fdb\u7b49\u529f\u80fd\uff0c\u4ee5\u5e2e\u52a9\u60a8\u7f16\u5199\u4ee3\u7801\u3002<\/p>\n<p><strong>\u8fd0\u884c Python \u4ee3\u7801<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\u4e4b\u4e00\u5728 Sublime Text \u4e2d\u8fd0\u884c Python \u4ee3\u7801\uff1a<\/p>\n<ul>\n<li> <strong>\u901a\u8fc7\u63a7\u5236\u53f0\uff1a<\/strong>\u8f6c\u5230\u5de5\u5177\u680f\u4e2d\u7684\u201c\u5de5\u5177\u201d\u83dc\u5355\u5e76\u9009\u62e9\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201cPython\u201d\u3002\u7136\u540e\u6309\u5feb\u6377\u952e Ctrl + B\uff08Windows\uff09\u6216 Cmd + B\uff08Mac\uff09\u5728 Sublime Text \u96c6\u6210\u7684\u63a7\u5236\u53f0\u4e2d\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<li> <strong>\u901a\u8fc7\u5916\u90e8\u7ec8\u7aef\uff1a<\/strong>\u8f6c\u5230\u5de5\u5177\u680f\u4e2d\u7684\u201c\u5de5\u5177\u201d\u83dc\u5355\u5e76\u9009\u62e9\u201c\u6784\u5efa\u7cfb\u7edf\u201d&gt;\u201c\u81ea\u52a8\u9009\u62e9\u6784\u5efa\u7cfb\u7edf\u201d\u3002\u7136\u540e\u6309\u5feb\u6377\u952e Ctrl + Alt + B\uff08Windows\uff09\u6216 Cmd + Option + B\uff08Mac\uff09\u5728\u5916\u90e8\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528 Sublime Text \u529f\u80fd<\/strong><\/p>\n<p>\u9664\u4e86\u57fa\u672c\u7684\u4ee3\u7801\u7f16\u8f91\u529f\u80fd\u5916\uff0cSublime Text \u8fd8\u63d0\u4f9b\u591a\u79cd\u529f\u80fd\u6765\u589e\u5f3a Python \u5f00\u53d1\u4f53\u9a8c\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li> <strong>\u4ee3\u7801\u6bb5\uff1a<\/strong>\u521b\u5efa\u4ee3\u7801\u7247\u6bb5\uff0c\u5e76\u5728\u9700\u8981\u65f6\u8f7b\u677e\u63d2\u5165\u3002<\/li>\n<li> <strong>\u81ea\u52a8\u5b8c\u6210\uff1a<\/strong>\u901a\u8fc7\u6309 Tab \u952e\u81ea\u52a8\u5b8c\u6210\u53d8\u91cf\u3001\u51fd\u6570\u548c\u5173\u952e\u5b57\u3002<\/li>\n<li> <strong>\u7f29\u8fdb\uff1a<\/strong>\u81ea\u52a8\u7f29\u8fdb\u4ee3\u7801\uff0c\u4ee5\u63d0\u9ad8\u3002<\/li>\n<li> <strong>\u8bed\u6cd5\u68c0\u67e5\uff1a<\/strong>\u4f7f\u7528 SublimeLinter \u63d2\u4ef6\u8fdb\u884c\u4ee3\u7801\u8bed\u6cd5\u68c0\u67e5\u3002<\/li>\n<li> <strong>\u8c03\u8bd5\uff1a<\/strong>\u4f7f\u7528 SublimeREPL \u63d2\u4ef6\u8fdb\u884c\u4ea4\u4e92\u5f0f\u8c03\u8bd5\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u7528\u5199\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 \u7f16\u8f91\u5668\u4e2d\u7f16\u5199 python\uff1f\u5b89\u88c5 python\u3002\u521b\u5efa python \u6587\u4ef6 (.py)\u3002\u7f16\u5199 python \u4ee3\u7801\u3002\u4f7f\u7528\u63a7\u5236\u53f0\u6216\u5916\u90e8\u7ec8\u7aef\u8fd0\u884c\u4ee3\u7801\u3002\u5229\u7528 sublime text \u7684\u529f\u80fd\uff08\u4ee3\u7801\u6bb5\u3001\u81ea\u52a8\u5b8c\u6210\u3001\u7f29\u8fdb\u3001\u8bed\u6cd5\u68c0\u67e5\u3001\u8c03\u8bd5\uff09\u589e\u5f3a\u5f00\u53d1\u4f53\u9a8c\u3002 \u4f7f\u7528 Sublime Text \u7f16\u8f91\u5668\u7f16\u5199 Python Sublime Text \u662f\u4e00\u6b3e\u6d41\u884c\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u53ef\u7528\u4e8e\u7f16\u5199\u5404\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002 \u5b89\u88c5 Python \u5728\u4f7f\u7528 Sublime Text \u7f16\u5199 Python \u4e4b\u524d\uff0c\u9700\u8981\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5 Python\u3002\u8bbf\u95ee Python \u5b98\u7f51 (https:\/\/www..org\/) \u5e76\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u64cd\u4f5c\u7cfb\u7edf\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u521b\u5efa Python \u6587\u4ef6 \u5728 Sublime Text \u4e2d\uff0c\u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u4fdd\u5b58\u4e3a\u5177\u6709 .py \u6269\u5c55\u540d\u7684 Python \u6587\u4ef6\uff0c\u4f8b\u5982 hello.py\u3002 \u7f16\u5199 Python \u4ee3\u7801 \u5728 Python \u6587\u4ef6\u4e2d\u7f16\u5199\u60a8\u7684 [&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-20742","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20742","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=20742"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20742\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}