{"id":20722,"date":"2024-11-19T17:48:16","date_gmt":"2024-11-19T09:48:16","guid":{"rendered":"https:\/\/fwq.ai\/blog\/20722\/"},"modified":"2024-11-19T17:48:16","modified_gmt":"2024-11-19T09:48:16","slug":"sublime%e5%bc%80%e5%8f%91python%e9%9c%80%e8%a6%81%e5%ae%89%e8%a3%85%e5%93%aa%e4%ba%9b%e6%8f%92%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/20722\/","title":{"rendered":"sublime\u5f00\u53d1python\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u63d2\u4ef6"},"content":{"rendered":"<blockquote><p>\n  sublime \u4e2d\u9ad8\u6548 python \u5f00\u53d1\u6240\u9700\u63d2\u4ef6\uff1apythonide\uff08\u4ee3\u7801\u81ea\u52a8\u8865\u5168\uff09\u3001sublimerepl\uff08\u4ea4\u4e92\u5f0f python \u63a7\u5236\u53f0\uff09\u3001docblockr\uff08\u81ea\u52a8\u751f\u6210 docstrings\uff09\u3001anaconda\uff08\u5e93\u548c\u73af\u5883\u96c6\u6210\uff09\u3001pep8\uff08\u4ee3\u7801\u6837\u5f0f\u68c0\u67e5\uff09\u3001sort imports\uff08\u5bfc\u5165\u8bed\u53e5\u6392\u5e8f\uff09\u3001sublimelinter-flake8\uff08\u4ee3\u7801\u5206\u6790\uff09\u3001python black\uff08\u81ea\u52a8\u4ee3\u7801\u683c\u5f0f\u5316\uff09\u3001codeglance\uff08\u4ee3\u7801\u7ed3\u6784\u6982\u89c8\uff09\u3001brackethighlighter\uff08\u62ec\u53f7\u5339\u914d\u7a81\u51fa\u663e\u793a\uff09\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202404\/03\/2024040315392337401.jpg\" class=\"aligncenter\" title=\"sublime\u5f00\u53d1python\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u63d2\u4ef6\u63d2\u56fe\" alt=\"sublime\u5f00\u53d1python\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u63d2\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>\u4e3a Sublime \u5f00\u53d1 Python \u6240\u9700\u7684\u63d2\u4ef6<\/strong><\/p>\n<p>\u4e3a\u4e86\u5728 Sublime \u4e2d\u8fdb\u884c\u9ad8\u6548\u7684 Python \u5f00\u53d1\uff0c\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u63d2\u4ef6\uff1a<\/p>\n<p><strong>1. Pythonide<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u7a81\u51fa\u663e\u793a\u548c\u9519\u8bef\u68c0\u67e5\u7b49\u57fa\u672c\u529f\u80fd\u3002<\/li>\n<li>\u8fd8\u5305\u542b\u8c03\u8bd5\u5668\u3001\u4ee3\u7801\u91cd\u6784\u548c\u5355\u5143\u6d4b\u8bd5\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p><strong>2. SublimeREPL<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5141\u8bb8\u5728 Sublime \u4e2d\u76f4\u63a5\u8fd0\u884c Python \u4ee3\u7801\u3002<\/li>\n<li>\u63d0\u4f9b\u4ea4\u4e92\u5f0f Python \u63a7\u5236\u53f0\u548c\u9519\u8bef\u5904\u7406\u3002<\/li>\n<\/ul>\n<p><strong>3. DocBlockr<\/strong><\/p>\n<ul>\n<li>\u751f\u6210\u8be6\u7ec6\u7684 docstrings \u4ee5\u8bb0\u5f55\u51fd\u6570\u548c\u7c7b\u7684\u7528\u6cd5\u3002<\/li>\n<li>\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002<\/li>\n<\/ul>\n<p><strong>4. Anaconda<\/strong><\/p>\n<ul>\n<li>\u96c6\u6210\u4e86 Anaconda \u53d1\u884c\u7248\u4e2d\u7684\u5e93\u548c\u73af\u5883\u3002<\/li>\n<li>\u63d0\u4f9b\u5305\u7ba1\u7406\u3001\u73af\u5883\u7ba1\u7406\u548c IPython \u63a7\u5236\u53f0\u3002<\/li>\n<\/ul>\n<p><strong>5. PEP8<\/strong><\/p>\n<ul>\n<li>\u6267\u884c PEP8 \u4ee3\u7801\u6837\u5f0f\u68c0\u67e5\u3002<\/li>\n<li>\u5e2e\u52a9\u786e\u4fdd Python \u4ee3\u7801\u7b26\u5408\u884c\u4e1a\u6700\u4f73\u5b9e\u8df5\u3002<\/li>\n<\/ul>\n<p><strong>6. Sort Imports<\/strong><\/p>\n<ul>\n<li>\u81ea\u52a8\u6392\u5e8f\u5bfc\u5165\u8bed\u53e5\u3002<\/li>\n<li>\u4fdd\u6301\u5bfc\u5165\u90e8\u5206\u7684\u6e05\u6670\u548c\u4e00\u81f4\u6027\u3002<\/li>\n<\/ul>\n<p><strong>7. SublimeLinter-flake8<\/strong><\/p>\n<ul>\n<li>\u63d0\u4f9b flake8 \u4ee3\u7801\u5206\u6790\u3002<\/li>\n<li>\u7a81\u51fa\u663e\u793a\u6f5c\u5728\u7684\u9519\u8bef\u548c\u98ce\u683c\u95ee\u9898\u3002<\/li>\n<\/ul>\n<p><strong>8. Python Black<\/strong><\/p>\n<ul>\n<li>\u6309\u7167 Python \u5b98\u65b9\u4ee3\u7801\u6837\u5f0f\u6307\u5357\u81ea\u52a8\u683c\u5f0f\u5316 Python \u4ee3\u7801\u3002<\/li>\n<li>\u786e\u4fdd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u4e00\u81f4\u6027\u3002<\/li>\n<\/ul>\n<p><strong>9. CodeGlance<\/strong><\/p>\n<ul>\n<li>\u5728\u4fa7\u8fb9\u680f\u4e2d\u663e\u793a\u4ee3\u7801\u6587\u4ef6\u7684\u7ed3\u6784\u6982\u89c8\u3002<\/li>\n<li>\u8f7b\u677e\u5bfc\u822a\u548c\u4e86\u89e3\u4ee3\u7801\u7ec4\u7ec7\u3002<\/li>\n<\/ul>\n<p><strong>10. BracketHighlighter<\/strong><\/p>\n<ul>\n<li>\u7a81\u51fa\u663e\u793a\u62ec\u53f7\u5339\u914d\u5bf9\u3002<\/li>\n<li>\u63d0\u9ad8\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5f00\u53d1\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u63d2\u4ef6\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>sublime \u4e2d\u9ad8\u6548 python \u5f00\u53d1\u6240\u9700\u63d2\u4ef6\uff1apythonide\uff08\u4ee3\u7801\u81ea\u52a8\u8865\u5168\uff09\u3001sublimerepl\uff08\u4ea4\u4e92\u5f0f python \u63a7\u5236\u53f0\uff09\u3001docblockr\uff08\u81ea\u52a8\u751f\u6210 docstrings\uff09\u3001anaconda\uff08\u5e93\u548c\u73af\u5883\u96c6\u6210\uff09\u3001pep8\uff08\u4ee3\u7801\u6837\u5f0f\u68c0\u67e5\uff09\u3001sort imports\uff08\u5bfc\u5165\u8bed\u53e5\u6392\u5e8f\uff09\u3001sublimelinter-flake8\uff08\u4ee3\u7801\u5206\u6790\uff09\u3001python black\uff08\u81ea\u52a8\u4ee3\u7801\u683c\u5f0f\u5316\uff09\u3001codeglance\uff08\u4ee3\u7801\u7ed3\u6784\u6982\u89c8\uff09\u3001brackethighlighter\uff08\u62ec\u53f7\u5339\u914d\u7a81\u51fa\u663e\u793a\uff09\u3002 \u4e3a Sublime \u5f00\u53d1 Python \u6240\u9700\u7684\u63d2\u4ef6 \u4e3a\u4e86\u5728 Sublime \u4e2d\u8fdb\u884c\u9ad8\u6548\u7684 Python \u5f00\u53d1\uff0c\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u63d2\u4ef6\uff1a 1. Pythonide \u63d0\u4f9b\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u7a81\u51fa\u663e\u793a\u548c\u9519\u8bef\u68c0\u67e5\u7b49\u57fa\u672c\u529f\u80fd\u3002 \u8fd8\u5305\u542b\u8c03\u8bd5\u5668\u3001\u4ee3\u7801\u91cd\u6784\u548c\u5355\u5143\u6d4b\u8bd5\u5de5\u5177\u3002 2. SublimeREPL \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b \u5141\u8bb8\u5728 Sublime \u4e2d\u76f4\u63a5\u8fd0\u884c Python \u4ee3\u7801\u3002 \u63d0\u4f9b\u4ea4\u4e92\u5f0f Python \u63a7\u5236\u53f0\u548c\u9519\u8bef\u5904\u7406\u3002 3. DocBlockr \u751f\u6210\u8be6\u7ec6\u7684 docstrings \u4ee5\u8bb0\u5f55\u51fd\u6570\u548c\u7c7b\u7684\u7528\u6cd5\u3002 \u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ec Python\u3002 4. Anaconda \u96c6\u6210\u4e86 Anaconda \u53d1\u884c\u7248\u4e2d\u7684\u5e93\u548c\u73af\u5883\u3002 \u63d0\u4f9b\u5305\u7ba1\u7406\u3001\u73af\u5883\u7ba1\u7406\u548c IPython \u63a7\u5236\u53f0\u3002 5. PEP8 \u6267\u884c PEP8 \u4ee3\u7801\u6837\u5f0f\u68c0\u67e5\u3002 \u5e2e\u52a9\u786e\u4fdd [&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-20722","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20722","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=20722"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/20722\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=20722"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=20722"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=20722"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}