{"id":973865,"date":"2024-12-27T06:00:21","date_gmt":"2024-12-26T22:00:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/973865.html"},"modified":"2024-12-27T06:00:23","modified_gmt":"2024-12-26T22:00:23","slug":"%e4%b8%8b%e8%bd%bd%e5%90%8e%e5%a6%82%e4%bd%95%e6%89%93%e5%bc%80python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/973865.html","title":{"rendered":"\u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195844\/c0af1d49-113b-4ad9-b17b-48fc6ee5ee9b.webp\" alt=\"\u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00python\" \/><\/p>\n<p><p> <strong>\u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00Python\uff1a\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6253\u5f00Python\u4ee3\u7801\u3002<\/strong>\u5176\u4e2d\uff0c\u5b89\u88c5Python\u89e3\u91ca\u5668\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65\u3002Python\u662f\u4e00\u79cd\u89e3\u91ca\u578b\u8bed\u8a00\uff0c\u56e0\u6b64\u9700\u8981\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5Python\u89e3\u91ca\u5668\u4ee5\u4fbf\u8fd0\u884cPython\u4ee3\u7801\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u76f4\u63a5\u8fd0\u884cPython\u811a\u672c\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u5982PyCharm\u3001VS Code\u7b49\u6253\u5f00\u548c\u7f16\u8f91Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u89e3\u91ca\u5668\u662f\u4f7f\u7528Python\u8bed\u8a00\u7684\u7b2c\u4e00\u6b65\u3002Python\u89e3\u91ca\u5668\u8d1f\u8d23\u5c06Python\u4ee3\u7801\u7ffb\u8bd1\u6210\u673a\u5668\u8bed\u8a00\uff0c\u5e76\u5728\u8ba1\u7b97\u673a\u4e0a\u6267\u884c\u3002\u4ee5\u4e0b\u662f\u5b89\u88c5Python\u89e3\u91ca\u5668\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u4e0b\u8f7dPython\u5b89\u88c5\u5305<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u9700\u8981\u4ecePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E9%80%82%E5%90%88%E6%93%8D%E4%BD%9C%E7%B3%BB%E7%BB%9F%E7%9A%84Python%E5%AE%89%E8%A3%85%E5%8C%85%E3%80%82Python%E7%9B%AE%E5%89%8D%E6%9C%89%E4%B8%A4%E4%B8%AA%E4%B8%BB%E8%A6%81%E7%89%88%E6%9C%AC%EF%BC%9APython\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7d\u9002\u5408\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u5b89\u88c5\u5305\u3002Python\u76ee\u524d\u6709\u4e24\u4e2a\u4e3b\u8981\u7248\u672c\uff1aPython<\/a> 2\u548cPython 3\u3002Python 2\u5df2\u7ecf\u4e0d\u518d\u66f4\u65b0\uff0c\u63a8\u8350\u4e0b\u8f7dPython 3\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u5305\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u9009\u62e9\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\u6765\u542f\u52a8Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08Windows\u4e0b\u662fCMD\uff0cMacOS\u548cLinux\u4e0b\u662fTerminal\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u5982\u679c\u663e\u793a\u51fa\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660ePython\u89e3\u91ca\u5668\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython\u4ee3\u7801\u662f\u4e00\u79cd\u76f4\u63a5\u3001\u5feb\u6377\u7684\u65b9\u5f0f\uff0c\u5c24\u5176\u9002\u5408\u8fd0\u884c\u7b80\u5355\u7684\u811a\u672c\u6216\u6d4b\u8bd5\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u547d\u4ee4\u884c\u8fd0\u884cPython\u4ee3\u7801\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u76f4\u63a5\u542f\u52a8Python\u4ea4\u4e92\u6a21\u5f0f<\/p>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\u6216<code>python3<\/code>\uff0c\u5373\u53ef\u8fdb\u5165Python\u4ea4\u4e92\u6a21\u5f0f\u3002\u5728\u4ea4\u4e92\u6a21\u5f0f\u4e0b\uff0c\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165Python\u547d\u4ee4\u5e76\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002\u8fd9\u79cd\u6a21\u5f0f\u975e\u5e38\u9002\u5408\u7528\u4e8e\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u884cPython\u811a\u672c\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5982\u679c\u6709Python\u811a\u672c\u6587\u4ef6\uff08\u4ee5.py\u4e3a\u540e\u7f00\uff09\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python script.py<\/code>\u6216<code>python3 script.py<\/code>\u6765\u8fd0\u884c\u8be5\u811a\u672c\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u8f83\u957f\u7684\u7a0b\u5e8f\u6216\u9879\u76ee\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6253\u5f00Python\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u529f\u80fd\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u7f16\u5199\u3001\u8c03\u8bd5\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u7528\u7684Python IDE\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>PyCharm<\/p>\n<\/p>\n<p><p>PyCharm\u662fJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u516c\u53f8\u5f00\u53d1\u7684\u4e00\u6b3e\u4e13\u4e1a\u7684Python IDE\uff0c\u652f\u6301\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u3001\u6d4b\u8bd5\u7b49\u529f\u80fd\u3002\u4e0b\u8f7d\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u521b\u5efa\u65b0\u9879\u76ee\u6216\u5bfc\u5165\u5df2\u6709\u9879\u76ee\uff0c\u65b9\u4fbf\u5730\u7f16\u8f91\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>Visual Studio Code (VS Code)<\/p>\n<\/p>\n<p><p>VS Code\u662f\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\u3002\u901a\u8fc7\u5b89\u88c5Python\u6269\u5c55\uff0cVS Code\u53ef\u4ee5\u6210\u4e3a\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684Python IDE\u3002VS Code\u652f\u6301\u4ee3\u7801\u8865\u5168\u3001\u8c03\u8bd5\u3001Git\u96c6\u6210\u7b49\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>Jupyter Notebook<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u6b3e\u57fa\u4e8e\u6d4f\u89c8\u5668\u7684\u4ea4\u4e92\u5f0f\u5f00\u53d1\u73af\u5883\uff0c\u7279\u522b\u9002\u5408\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u3002\u53ef\u4ee5\u5728Notebook\u4e2d\u7f16\u5199\u4ee3\u7801\u3001\u8fd0\u884c\u4ee3\u7801\uff0c\u5e76\u5b9e\u65f6\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u548c\u53ef\u89c6\u5316\u56fe\u8868\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001Python\u865a\u62df\u73af\u5883\u7684\u4f7f\u7528<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1Python\u9879\u76ee\u65f6\uff0c\u901a\u5e38\u9700\u8981\u4f7f\u7528\u4e0d\u540c\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u4f9d\u8d56\u9879\u3002\u4e3a\u4e86\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u865a\u62df\u73af\u5883\u6765\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528Python\u81ea\u5e26\u7684<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u8fd0\u884c<code>python -m venv env_name<\/code>\uff0c\u5373\u53ef\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a<code>env_name<\/code>\u7684\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u5728Windows\u4e0b\uff0c\u8fd0\u884c<code>env_name\\Scripts\\activate<\/code>\uff1b\u5728MacOS\u548cLinux\u4e0b\uff0c\u8fd0\u884c<code>source env_name\/bin\/activate<\/code>\uff0c\u5373\u53ef\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u3002\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u4f1a\u663e\u793a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u4f9d\u8d56<\/p>\n<\/p>\n<p><p>\u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip install package_name<\/code>\u547d\u4ee4\u5b89\u88c5\u6240\u9700\u7684\u7b2c\u4e09\u65b9\u5e93\u3002\u8fd9\u4e9b\u5e93\u53ea\u4f1a\u5b89\u88c5\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u9000\u51fa\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>deactivate<\/code>\u547d\u4ee4\u53ef\u4ee5\u9000\u51fa\u865a\u62df\u73af\u5883\uff0c\u56de\u5230\u5168\u5c40\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u51b3\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528Python\u7684\u8fc7\u7a0b\u4e2d\uff0c\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\uff0c\u5982\u65e0\u6cd5\u627e\u5230Python\u89e3\u91ca\u5668\u3001\u4f9d\u8d56\u5e93\u7f3a\u5931\u7b49\u3002\u4ee5\u4e0b\u662f\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u4e00\u4e9b\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p>\u786e\u4fddPython\u8def\u5f84\u6b63\u786e<\/p>\n<\/p>\n<p><p>\u5982\u679c\u5728\u547d\u4ee4\u884c\u4e2d\u65e0\u6cd5\u627e\u5230Python\u89e3\u91ca\u5668\uff0c\u8bf7\u68c0\u67e5Python\u5b89\u88c5\u8def\u5f84\u662f\u5426\u6b63\u786e\u6dfb\u52a0\u5230\u4e86\u7cfb\u7edf\u7684PATH\u73af\u5883\u53d8\u91cf\u4e2d\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u4f9d\u8d56\u5e93<\/p>\n<\/p>\n<p><p>\u5982\u679c\u8fd0\u884cPython\u4ee3\u7801\u65f6\u63d0\u793a\u67d0\u4e2a\u5e93\u7f3a\u5931\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip install package_name<\/code>\u547d\u4ee4\u5b89\u88c5\u7f3a\u5931\u7684\u5e93\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p>\u67e5\u770b\u9519\u8bef\u4fe1\u606f<\/p>\n<\/p>\n<p><p>\u5f53\u9047\u5230\u9519\u8bef\u65f6\uff0c\u4ed4\u7ec6\u9605\u8bfb\u9519\u8bef\u4fe1\u606f\uff0c\u901a\u5e38\u53ef\u4ee5\u5e2e\u52a9\u5b9a\u4f4d\u95ee\u9898\u7684\u539f\u56e0\u3002\u9519\u8bef\u4fe1\u606f\u4e2d\u901a\u5e38\u4f1a\u5305\u542b\u9519\u8bef\u7684\u7c7b\u578b\u3001\u4f4d\u7f6e\u548c\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u548c\u6253\u5f00Python\u662f\u4f7f\u7528Python\u8fdb\u884c\u7f16\u7a0b\u7684\u57fa\u7840\u6b65\u9aa4\u3002\u901a\u8fc7\u5b89\u88c5Python\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u4ee3\u7801\uff1b\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\uff0c\u53ef\u4ee5\u66f4\u52a0\u9ad8\u6548\u5730\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\uff1b\u901a\u8fc7\u4f7f\u7528\u865a\u62df\u73af\u5883\uff0c\u53ef\u4ee5\u7ba1\u7406\u9879\u76ee\u7684\u4f9d\u8d56\uff0c\u907f\u514d\u51b2\u7a81\u3002\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\uff0c\u9047\u5230\u95ee\u9898\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u9605\u8bfb\u9519\u8bef\u4fe1\u606f\u3001\u67e5\u9605\u6587\u6863\u548c\u5728\u7ebf\u8d44\u6e90\u6765\u89e3\u51b3\u3002\u638c\u63e1\u8fd9\u4e9b\u57fa\u7840\u77e5\u8bc6\u548c\u6280\u80fd\uff0c\u5c06\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u4f7f\u7528Python\u8fdb\u884c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u6211\u7684\u7535\u8111\u4e0a\u627e\u5230Python\u7684\u5b89\u88c5\u4f4d\u7f6e\uff1f<\/strong><br \/>\u5728Windows\u7cfb\u7edf\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u5f00\u59cb\u83dc\u5355\u641c\u7d22\u201cPython\u201d\u6765\u627e\u5230\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u3002\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fMac\uff0c\u60a8\u53ef\u4ee5\u5728\u201c\u5e94\u7528\u7a0b\u5e8f\u201d\u6587\u4ef6\u5939\u4e2d\u627e\u5230\u5b83\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>where python<\/code>\uff08Windows\uff09\u6216<code>which python<\/code>\uff08Mac\u548cLinux\uff09\uff0c\u8fd9\u5c06\u663e\u793aPython\u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<p><strong>\u5982\u4f55\u9a8c\u8bc1\u6211\u7684Python\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\uff08Windows\uff09\u6216\u7ec8\u7aef\uff08Mac\/Linux\uff09\uff0c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\uff0c\u5982\u679c\u6210\u529f\u5b89\u88c5\uff0c\u60a8\u5c06\u770b\u5230\u6240\u5b89\u88c5\u7684Python\u7248\u672c\u53f7\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u65f6\u6ca1\u6709\u9519\u8bef\u63d0\u793a\uff0c\u8fd9\u5c06\u5e2e\u52a9\u60a8\u786e\u8ba4Python\u662f\u5426\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p><strong>\u6211\u53ef\u4ee5\u5728Python\u4e2d\u8fd0\u884c\u54ea\u4e9b\u7c7b\u578b\u7684\u7a0b\u5e8f\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8303\u5f0f\uff0c\u5305\u62ec\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u3001\u51fd\u6570\u5f0f\u7f16\u7a0b\u548c\u8fc7\u7a0b\u5f0f\u7f16\u7a0b\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528Python\u7f16\u5199\u5404\u79cd\u7c7b\u578b\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982\u6570\u636e\u5206\u6790\u3001\u7f51\u9875\u5f00\u53d1\u3001<a href=\"https:\/\/docs.pingcode.com\/tag\/AI\" target=\"_blank\">\u4eba\u5de5\u667a\u80fd<\/a>\u548c\u673a\u5668\u5b66\u4e60\u7b49\u3002Python\u7684\u5f3a\u5927\u5e93\u548c\u6846\u67b6\uff08\u5982Pandas\u3001Flask\u3001TensorFlow\u7b49\uff09\u4f7f\u5f97\u5f00\u53d1\u53d8\u5f97\u66f4\u52a0\u9ad8\u6548\u548c\u7075\u6d3b\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fd0\u884c\u6211\u7684\u7b2c\u4e00\u4e2a\u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u4ee5\u6253\u5f00\u4e00\u4e2a\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u3001VS Code\u6216PyCharm\uff09\uff0c\u7f16\u5199\u7b80\u5355\u7684\u4ee3\u7801\uff0c\u4f8b\u5982<code>print(&quot;Hello, World!&quot;)<\/code>\u3002\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>.py<\/code>\u683c\u5f0f\uff0c\u7136\u540e\u5728\u547d\u4ee4\u63d0\u793a\u7b26\u6216\u7ec8\u7aef\u4e2d\u5bfc\u822a\u5230\u8be5\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u8f93\u5165<code>python yourfile.py<\/code>\u6765\u8fd0\u884c\u7a0b\u5e8f\u3002\u8fd9\u6837\u60a8\u5c31\u53ef\u4ee5\u770b\u5230\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4e0b\u8f7d\u540e\u5982\u4f55\u6253\u5f00Python\uff1a\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u8fd0\u884cPython\u3001\u4f7f\u7528\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u6253\u5f00 [&hellip;]","protected":false},"author":3,"featured_media":973876,"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\/973865"}],"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=973865"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973865\/revisions"}],"predecessor-version":[{"id":973877,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973865\/revisions\/973877"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/973876"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=973865"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=973865"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=973865"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}