{"id":178648,"date":"2024-05-08T19:55:22","date_gmt":"2024-05-08T11:55:22","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/178648.html"},"modified":"2024-05-08T19:55:34","modified_gmt":"2024-05-08T11:55:34","slug":"%e4%bb%80%e4%b9%88%e6%a0%b7%e7%9a%84-python-%e7%bc%96%e8%be%91%e5%99%a8%e6%af%94%e8%be%83%e9%80%82%e5%90%88%e6%96%b0%e6%89%8b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/178648.html","title":{"rendered":"\u4ec0\u4e48\u6837\u7684 Python \u7f16\u8f91\u5668\u6bd4\u8f83\u9002\u5408\u65b0\u624b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27063114\/7d65fd3e-75ee-46c7-b3fc-319f192ebd30.webp\" alt=\"\u4ec0\u4e48\u6837\u7684 Python \u7f16\u8f91\u5668\u6bd4\u8f83\u9002\u5408\u65b0\u624b\" \/><\/p>\n<p><p>\u5bf9\u4e8e\u65b0\u624b\u800c\u8a00\uff0c\u9009\u62e9\u4e00\u4e2a\u7b26\u5408\u4e2a\u4eba\u9700\u8981\u548c\u5b66\u4e60\u66f2\u7ebf\u7684Python\u7f16\u8f91\u5668\u81f3\u5173\u91cd\u8981\u3002\u7406\u60f3\u7684Python\u7f16\u8f91\u5668\u5e94\u8be5\u5177\u5907\u4ee5\u4e0b\u7279\u70b9\uff1a\u6613\u4e8e\u5b66\u4e60\u548c\u4f7f\u7528\u3001\u5177\u6709\u8bed\u6cd5\u9ad8\u4eae\u548c\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u529f\u80fd\u3001\u63d0\u4f9b\u9519\u8bef\u68c0\u67e5\u548c\u8c03\u8bd5\u5de5\u5177\u3001\u4ee5\u53ca\u80fd\u591f\u652f\u6301<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u548c\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002\u5728\u8fd9\u4e9b\u7279\u70b9\u4e2d\uff0c<strong>\u6613\u4e8e\u5b66\u4e60\u548c\u4f7f\u7528<\/strong>\u5c24\u4e3a\u91cd\u8981\uff0c\u56e0\u4e3a\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0c\u4e00\u4e2a\u76f4\u89c2\u3001\u65e0\u9700\u82b1\u8d39\u5927\u91cf\u65f6\u95f4\u5b66\u4e60\u7684\u7f16\u8f91\u5668\u53ef\u4ee5\u6781\u5927\u5730\u63d0\u9ad8\u5b66\u4e60\u6548\u7387\u548c\u7f16\u7a0b\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><p>\u6b64\u5916\uff0c\u6613\u4e8e\u4f7f\u7528\u7684\u7f16\u8f91\u5668\u901a\u5e38\u4f1a\u6709\u4e00\u4e2a\u7b80\u6d01\u660e\u4e86\u7684\u754c\u9762\uff0c\u5e2e\u52a9\u65b0\u624b\u5feb\u901f\u627e\u5230\u6240\u9700\u529f\u80fd\uff0c\u800c\u4e0d\u4f1a\u88ab\u590d\u6742\u7684\u9009\u9879\u548c\u8bbe\u7f6e\u6240\u56f0\u6270\u3002\u540c\u65f6\uff0c\u8fd9\u6837\u7684\u7f16\u8f91\u5668\u8fd8\u4f1a\u63d0\u4f9b\u4e30\u5bcc\u7684\u5b66\u4e60\u8d44\u6e90\u548c\u793e\u533a\u652f\u6301\uff0c\u8ba9\u65b0\u624b\u5728\u9047\u5230\u95ee\u9898\u65f6\u80fd\u591f\u8fc5\u901f\u627e\u5230\u89e3\u51b3\u65b9\u6848\uff0c\u4ece\u800c\u4fdd\u6301\u5b66\u4e60\u7684\u52a8\u529b\u548c\u5174\u8da3\u3002<\/p>\n<\/p>\n<p><h2><strong>\u4e00\u3001PYTHON IDE VS \u7f16\u8f91\u5668<\/strong><\/h2>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4e86\u89e3Python\u7f16\u7a0b\u73af\u5883\u4e2dIDE\uff08Integrated Development Environment\uff0c\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u4e0e\u666e\u901a\u6587\u672c\u7f16\u8f91\u5668\u4e4b\u95f4\u7684\u533a\u522b\u662f\u5f88\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<p><p>Python IDE\u901a\u5e38\u662f\u4e3a\u4e86\u4e13\u95e8\u7f16\u7a0b\u800c\u8bbe\u8ba1\u7684\u8f6f\u4ef6\uff0c\u5b83\u4eec\u5185\u7f6e\u4e86\u8bf8\u5982\u4ee3\u7801\u7f16\u8f91\u3001\u8c03\u8bd5\u548c\u8fd0\u884c\u7684\u590d\u6742\u529f\u80fd\u3002\u5bf9\u4e8e\u521d\u5b66\u8005\u6765\u8bf4\uff0cIDE\u53ef\u80fd\u4f1a\u56e0\u5176\u591a\u6837\u5316\u7684\u529f\u80fd\u800c\u663e\u5f97\u6709\u4e9b\u590d\u6742\uff0c\u4f46\u662f\uff0c\u5b83\u4eec\u5bf9\u4e8e\u9879\u76ee\u7ba1\u7406\u548c\u9519\u8bef\u68c0\u6d4b\u7b49\u9ad8\u7ea7\u7f16\u7a0b\u9700\u6c42\u6765\u8bf4\u5374\u662f\u4e0d\u53ef\u6216\u7f3a\u7684\u3002<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u65b9\u9762\uff0c\u6587\u672c\u7f16\u8f91\u5668\u4e00\u822c\u754c\u9762\u66f4\u4e3a\u7b80\u6d01\uff0c\u529f\u80fd\u76f8\u5bf9\u96c6\u4e2d\u548c\u4e13\u4e00\u3002\u5b83\u4eec\u63d0\u4f9b\u57fa\u672c\u7684\u4ee3\u7801\u4e66\u5199\u529f\u80fd\uff0c\u5305\u62ec\u8bed\u6cd5\u9ad8\u4eae\u3001\u4ee3\u7801\u683c\u5f0f\u5316\u7b49\uff0c\u6709\u7684\u8fd8\u4f1a\u6709\u63d2\u4ef6\u7cfb\u7edf\uff0c\u901a\u8fc7\u5b89\u88c5\u63d2\u4ef6\u4ee5\u652f\u6301\u66f4\u591a\u7684\u7f16\u7a0b\u5de5\u5177\u548c\u7279\u6027\u3002<\/p>\n<\/p>\n<p><h2><strong>\u4e8c\u3001\u63a8\u8350Python\u7f16\u8f91\u5668<\/strong><\/h2>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u7f16\u8f91\u5668\u65f6\uff0c\u65b0\u624b\u53ef\u80fd\u4f1a\u611f\u5230\u8ff7\u832b\uff0c\u56e0\u4e3a\u5e02\u573a\u4e0a\u6709\u5f88\u591a\u4e0d\u540c\u7684\u9009\u9879\u3002\u4ee5\u4e0b\u662f\u51e0\u79cd\u975e\u5e38\u9002\u5408Python\u65b0\u624b\u7684\u7f16\u8f91\u5668\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Visual Studio Code\uff08VS Code\uff09<\/h3>\n<\/p>\n<p><p>VS Code\u662f\u4e00\u4e2a\u514d\u8d39\u3001\u5f00\u6e90\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301Windows\u3001Linux\u548cmacOS\u5e73\u53f0\u3002\u5b83\u63d0\u4f9b\u4e86\u4ee3\u7801\u9ad8\u4eae\u3001\u667a\u80fd\u4ee3\u7801\u8865\u5168\u3001\u5185\u7f6eGit\u63a7\u5236\u3001\u8c03\u8bd5\u652f\u6301\u7b49\u529f\u80fd\u3002VS Code\u62e5\u6709\u5927\u91cf\u7684\u6269\u5c55\u63d2\u4ef6\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u901a\u8fc7\u5b89\u88c5\u63d2\u4ef6\u6765\u652f\u6301Python\u7f16\u7a0b\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u5165\u95e8\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001PyCharm Community Edition<\/h3>\n<\/p>\n<p><p>PyCharm\u662f\u4e00\u4e2a\u4e13\u4e3aPython\u5f00\u53d1\u8bbe\u8ba1\u7684IDE\uff0c\u5176\u793e\u533a\u7248\u662f\u514d\u8d39\u7684\u3002\u5b83\u63d0\u4f9b\u4e86\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u9519\u8bef\u9ad8\u4eae\u3001\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\u548c\u7248\u672c\u63a7\u5236\u96c6\u6210\u7b49\u3002\u7531\u4e8ePyCharm\u662f\u4e13\u4e3aPython\u8bbe\u8ba1\u7684\uff0c\u5b83\u5bf9Python\u751f\u6001\u7cfb\u7edf\u7684\u652f\u6301\u975e\u5e38\u5168\u9762\uff0c\u975e\u5e38\u9002\u5408Python\u521d\u5b66\u8005\u548c\u4e13\u4e1a\u5f00\u53d1\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001Thonny<\/h3>\n<\/p>\n<p><p>Thonny\u662f\u4e00\u4e2a\u4e13\u95e8\u4e3aPython\u521d\u5b66\u8005\u8bbe\u8ba1\u7684IDE\u3002\u5b83\u6709\u4e00\u4e2a\u7b80\u5355\u660e\u4e86\u7684\u7528\u6237\u754c\u9762\uff0c\u63d0\u4f9b\u4e86\u76f4\u89c2\u7684\u4ee3\u7801\u8fd0\u884c\u3001\u8c03\u8bd5\u4ee5\u53ca\u53d8\u91cf\u5c55\u793a\u529f\u80fd\u3002Thonny\u5185\u7f6e\u4e86Python\u89e3\u91ca\u5668\uff0c\u65b0\u624b\u53ef\u4ee5\u4e0d\u9700\u8981\u989d\u5916\u5b89\u88c5Python\u73af\u5883\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u7a0b\uff0c\u5927\u5927\u964d\u4f4e\u4e86\u5165\u95e8\u95e8\u69db\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001Jupyter Notebook<\/h3>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Web\u5e94\u7528\u7a0b\u5e8f\uff0c\u8ba9\u4f60\u80fd\u591f\u521b\u5efa\u548c\u5171\u4eab\u5305\u542b\u5b9e\u65f6\u4ee3\u7801\u3001\u65b9\u7a0b\u3001\u53ef\u89c6\u5316\u53ca\u6587\u672c\u7684\u6587\u6863\u3002\u5b83\u7279\u522b\u9002\u5408\u6570\u636e\u5206\u6790\u3001\u6570\u636e\u53ef\u89c6\u5316\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9879\u76ee\u3002\u5bf9\u4e8e\u5e0c\u671b\u8fdb\u884c\u6570\u636e\u79d1\u5b66\u5b66\u4e60\u7684Python\u521d\u5b66\u8005\u800c\u8a00\uff0cJupyter Notebook\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u76f4\u89c2\u548c\u53cb\u597d\u7684\u5b66\u4e60\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h2><strong>\u4e09\u3001\u5982\u4f55\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684Python\u7f16\u8f91\u5668<\/strong><\/h2>\n<\/p>\n<p><p>\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684Python\u7f16\u8f91\u5668\uff0c\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u4e2a\u4eba\u9700\u6c42\u548c\u7f16\u7a0b\u76ee\u6807<\/strong>\uff1a\u662f\u5426\u9700\u8981IDE\u63d0\u4f9b\u7684\u590d\u6742\u529f\u80fd\uff0c\u8fd8\u662f\u53ea\u9700\u8981\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u7f16\u8f91\u5668\u6765\u5b66\u4e60\u57fa\u7840\u8bed\u6cd5\uff1f<\/li>\n<li><strong>\u7cfb\u7edf\u517c\u5bb9\u6027<\/strong>\uff1a\u7f16\u8f91\u5668\u662f\u5426\u652f\u6301\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\uff1f<\/li>\n<li><strong>\u5b66\u4e60\u8d44\u6e90<\/strong>\uff1a\u67e5\u770b\u662f\u5426\u6709\u5145\u8db3\u7684\u6559\u7a0b\u3001\u6587\u6863\u4ee5\u53ca\u793e\u533a\u652f\u6301\u6765\u5e2e\u52a9\u4f60\u5b66\u4e60\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/li>\n<li><strong>\u6269\u5c55\u6027<\/strong>\uff1a\u5982\u679c\u4f60\u4eca\u540e\u9700\u8981\u66f4\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u7f16\u8f91\u5668\u662f\u5426\u63d0\u4f9b\u4e86\u63d2\u4ef6\u6216\u5176\u4ed6\u65b9\u5f0f\u6765\u6ee1\u8db3\u4f60\u7684\u9700\u8981\uff1f<\/li>\n<\/ul>\n<p><p>\u901a\u8fc7\u5bf9\u6bd4\u4e0d\u540c\u7f16\u8f91\u5668\u7684\u7279\u70b9\u548c\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u7ed3\u5408\u5b9e\u9645\u5c1d\u8bd5\u51e0\u4e2a\u7f16\u8f91\u5668\uff0c\u6700\u7ec8\u4f60\u5c06\u80fd\u627e\u5230\u6700\u9002\u5408\u81ea\u5df1\u7684Python\u7f16\u8f91\u5668\u3002\u8bb0\u4f4f\uff0c\u6ca1\u6709\u6240\u8c13\u7684\u201c\u6700\u597d\u201d\u7684\u7f16\u8f91\u5668\uff0c\u53ea\u6709\u6700\u9002\u5408\u4f60\u7684\u7f16\u8f91\u5668\u3002\u968f\u7740\u4f60\u7f16\u7a0b\u6280\u80fd\u7684\u63d0\u9ad8\uff0c\u4f60\u53ef\u80fd\u4f1a\u53d1\u73b0\u81ea\u5df1\u7684\u9700\u6c42\u53d1\u751f\u53d8\u5316\uff0c\u90a3\u65f6\u5019\u518d\u53bb\u5bfb\u627e\u65b0\u7684\u5de5\u5177\u4e5f\u4e0d\u8fdf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5728Python\u7f16\u7a0b\u4e2d\u5e94\u8be5\u4f7f\u7528\u54ea\u79cd\u7f16\u8f91\u5668\uff1f<\/strong><\/p>\n<p>\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\uff0c\u9002\u5408\u4f7f\u7528\u4e00\u6b3e\u7b80\u5355\u6613\u7528\u7684Python\u7f16\u8f91\u5668\uff0c\u4f8b\u5982Anaconda\u3001PyCharm\u6216\u8005Thonny\u7b49\u3002\u8fd9\u4e9b\u7f16\u8f91\u5668\u63d0\u4f9b\u4e86\u4e13\u95e8\u9488\u5bf9Python\u7f16\u7a0b\u7684\u529f\u80fd\uff0c\u5982\u4ee3\u7801\u81ea\u52a8\u8865\u5168\u3001\u8bed\u6cd5\u9ad8\u4eae\u663e\u793a\u548c\u9519\u8bef\u63d0\u793a\u3002\u540c\u65f6\uff0c\u5b83\u4eec\u8fd8\u6709\u53cb\u597d\u7684\u7528\u6237\u754c\u9762\u548c\u7b80\u6d01\u660e\u4e86\u7684\u5e03\u5c40\uff0c\u4f7f\u5f97\u5b66\u4e60\u548c\u4f7f\u7528Python\u53d8\u5f97\u66f4\u52a0\u8f7b\u677e\u548c\u6109\u5feb\u3002<\/p>\n<p><strong>2. \u6709\u6ca1\u6709\u514d\u8d39\u7684 Python \u7f16\u8f91\u5668\u9002\u5408\u65b0\u624b\u4f7f\u7528\uff1f<\/strong><\/p>\n<p>\u5f53\u7136\u6709\uff01\u5bf9\u4e8e\u65b0\u624b\u6765\u8bf4\uff0cSublime Text\u548cIDLE\u90fd\u662f\u4e0d\u9519\u7684\u514d\u8d39Python\u7f16\u8f91\u5668\u9009\u62e9\u3002Sublime Text\u5177\u6709\u5e72\u51c0\u7b80\u6d01\u7684\u754c\u9762\u548c\u53ef\u6269\u5c55\u7684\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8bbe\u7f6e\u4ee3\u7801\u9ad8\u4eae\u548c\u81ea\u5b9a\u4e49\u63d2\u4ef6\u3002\u800cIDLE\u662fPython\u5b98\u65b9\u63d0\u4f9b\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u529f\u80fd\u7b80\u5355\u6613\u7528\uff0c\u9002\u5408\u7f16\u5199\u548c\u8c03\u8bd5\u7b80\u5355\u7684Python\u4ee3\u7801\u3002<\/p>\n<p><strong>3. \u6709\u6ca1\u6709\u9002\u5408\u5728\u6d4f\u89c8\u5668\u4e2d\u8fd0\u884c\u7684\u5728\u7ebf Python \u7f16\u8f91\u5668\uff1f<\/strong><\/p>\n<p>\u5f53\u7136\u6709\uff01\u5bf9\u4e8e\u4e0d\u60f3\u5b89\u88c5\u672c\u5730Python\u7f16\u8f91\u5668\u7684\u65b0\u624b\uff0c\u53ef\u4ee5\u4f7f\u7528\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684\u5728\u7ebfPython\u7f16\u8f91\u5668\uff0c\u5982Repl.it\u3001Trinket\u548cPythonAnywhere\u7b49\u3002\u8fd9\u4e9b\u5728\u7ebf\u7f16\u8f91\u5668\u4e0d\u9700\u8981\u5b89\u88c5\u4efb\u4f55\u8f6f\u4ef6\uff0c\u53ea\u9700\u6253\u5f00\u6d4f\u89c8\u5668\u5c31\u53ef\u4ee5\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u5b83\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4e91\u7aef\u7684\u5f00\u53d1\u73af\u5883\uff0c\u53ef\u4ee5\u8f7b\u677e\u5171\u4eab\u4ee3\u7801\u3001\u5c1d\u8bd5\u65b0\u7684\u5e93\u548c\u6846\u67b6\uff0c\u5e76\u4e14\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u548c\u529f\u80fd\u6269\u5c55\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5bf9\u4e8e\u65b0\u624b\u800c\u8a00\uff0c\u9009\u62e9\u4e00\u4e2a\u7b26\u5408\u4e2a\u4eba\u9700\u8981\u548c\u5b66\u4e60\u66f2\u7ebf\u7684Python\u7f16\u8f91\u5668\u81f3\u5173\u91cd\u8981\u3002\u7406\u60f3\u7684Python\u7f16\u8f91\u5668\u5e94\u8be5\u5177\u5907\u4ee5\u4e0b [&hellip;]","protected":false},"author":3,"featured_media":178673,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/178648"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=178648"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/178648\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/178673"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=178648"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=178648"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=178648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}