{"id":945012,"date":"2024-12-26T23:19:00","date_gmt":"2024-12-26T15:19:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/945012.html"},"modified":"2024-12-26T23:19:03","modified_gmt":"2024-12-26T15:19:03","slug":"python%e7%8e%af%e5%a2%83%e5%a6%82%e4%bd%95%e6%94%b9","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/945012.html","title":{"rendered":"Python\u73af\u5883\u5982\u4f55\u6539"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081740\/3d59db55-36b6-4a9c-994f-0c5b44243bc7.webp\" alt=\"Python\u73af\u5883\u5982\u4f55\u6539\" \/><\/p>\n<p><p> \u5728Python\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c<strong>\u66f4\u6539Python\u73af\u5883\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u7ba1\u7406\u5668\u5982Anaconda\u3001\u66f4\u65b0Python\u7248\u672c\u7b49\u65b9\u5f0f\u6765\u5b9e\u73b0<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u4f9d\u8d56\u5e93\uff0c\u800c\u4e0d\u4f1a\u4ea7\u751f\u51b2\u7a81\u3002<strong>\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u7ba1\u7406\u5668\u5de5\u5177\u548c\u66f4\u65b0Python\u7248\u672c\u662f\u5b9e\u73b0Python\u73af\u5883\u66f4\u6539\u7684\u4e3b\u8981\u65b9\u6cd5<\/strong>\uff0c\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u662f\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u5b83\u5141\u8bb8\u4f60\u5728\u9879\u76ee\u4e2d\u5b89\u88c5\u7279\u5b9a\u7684\u5305\u548cPython\u7248\u672c\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u7684Python\u73af\u5883\u3002Python\u6807\u51c6\u5e93\u63d0\u4f9b\u4e86<code>venv<\/code>\u6a21\u5757\u6765\u521b\u5efa\u548c\u7ba1\u7406\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u73af\u5883\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c<code>myenv<\/code>\u662f\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\u3002\u521b\u5efa\u540e\uff0c\u5b83\u4f1a\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u751f\u6210\u4e00\u4e2a\u540d\u4e3a<code>myenv<\/code>\u7684\u6587\u4ef6\u5939\uff0c\u5305\u542b\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>2. \u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u4e2d\uff0c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u7684\u547d\u4ee4\u7565\u6709\u4e0d\u540c\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u4e0a\uff1a\n<pre><code class=\"language-bash\">.\\myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\u5728Unix\u6216MacOS\u4e0a\uff1a\n<pre><code class=\"language-bash\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u6fc0\u6d3b\u540e\uff0c\u547d\u4ee4\u884c\u63d0\u793a\u7b26\u4f1a\u6709\u6240\u53d8\u5316\uff0c\u901a\u5e38\u4f1a\u5728\u524d\u9762\u52a0\u4e0a\u865a\u62df\u73af\u5883\u7684\u540d\u79f0\uff0c\u8868\u793a\u5f53\u524d\u5df2\u5207\u6362\u5230\u8be5\u865a\u62df\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>3. \u5b89\u88c5\u4f9d\u8d56\u5305<\/h4>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>pip<\/code>\u547d\u4ee4\u6765\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install package_name<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u7684\u5305\u53ea\u4f1a\u5f71\u54cd\u5f53\u524d\u7684\u865a\u62df\u73af\u5883\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5230\u7cfb\u7edf\u7684Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h4>4. \u9000\u51fa\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u8981\u9000\u51fa\u865a\u62df\u73af\u5883\uff0c\u7b80\u5355\u5730\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">deactivate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u6062\u590d\u5230\u7cfb\u7edf\u7684\u9ed8\u8ba4Python\u73af\u5883\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Anaconda<\/h3>\n<\/p>\n<p><p>Anaconda\u662f\u4e00\u4e2a\u6d41\u884c\u7684Python\u53d1\u884c\u7248\uff0c\u7279\u522b\u9002\u5408\u6570\u636e\u79d1\u5b66\u548c<a href=\"https:\/\/docs.pingcode.com\/ask\/59192.html\" target=\"_blank\">\u673a\u5668\u5b66\u4e60<\/a>\u9879\u76ee\u3002\u5b83\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u73af\u5883\u7ba1\u7406\u5de5\u5177<code>conda<\/code>\uff0c\u53ef\u4ee5\u7528\u6765\u7ba1\u7406\u4e0d\u540c\u7684Python\u7248\u672c\u548c\u5305\u3002<\/p>\n<\/p>\n<p><h4>1. \u521b\u5efaConda\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Conda\u73af\u5883\uff0c\u5e76\u6307\u5b9aPython\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda create --name myenv python=3.8<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u91cc\uff0c<code>myenv<\/code>\u662f\u73af\u5883\u7684\u540d\u79f0\uff0c<code>python=3.8<\/code>\u6307\u5b9a\u4e86Python\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h4>2. \u6fc0\u6d3bConda\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u4e0e\u865a\u62df\u73af\u5883\u7c7b\u4f3c\uff0c\u6fc0\u6d3bConda\u73af\u5883\u7684\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda activate myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b89\u88c5\u5305<\/h4>\n<\/p>\n<p><p>\u5728Conda\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>conda install<\/code>\u547d\u4ee4\u6765\u5b89\u88c5\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda install numpy<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Conda\u4f1a\u81ea\u52a8\u89e3\u51b3\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u5e76\u786e\u4fdd\u5b89\u88c5\u7684\u5305\u4e0e\u73af\u5883\u517c\u5bb9\u3002<\/p>\n<\/p>\n<p><h4>4. \u5207\u6362\u548c\u5220\u9664\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u8981\u5207\u6362\u5230\u53e6\u4e00\u4e2a\u73af\u5883\uff0c\u53ef\u4ee5\u4f7f\u7528<code>conda activate<\/code>\u547d\u4ee4\u3002\u8981\u5220\u9664\u73af\u5883\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda remove --name myenv --all<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u66f4\u65b0Python\u7248\u672c<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u66f4\u65b0Python\u7248\u672c\u6765\u5229\u7528\u6700\u65b0\u7684\u7279\u6027\u548c\u4fee\u590d\u3002\u4ee5\u4e0b\u662f\u66f4\u65b0Python\u7248\u672c\u7684\u4e00\u822c\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<p><h4>1. \u68c0\u67e5\u5f53\u524dPython\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5\u5f53\u524d\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4e0b\u8f7d\u548c\u5b89\u88c5\u65b0\u7248Python<\/h4>\n<\/p>\n<p><p>\u524d\u5f80Python\u5b98\u65b9\u7f51\u7ad9\uff08python.org\uff09\u4e0b\u8f7d\u6700\u65b0\u7684Python\u7248\u672c\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u63d0\u793a\u8fdb\u884c\u5b89\u88c5\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u5efa\u8bae\u9009\u62e9\u201c\u6dfb\u52a0Python\u5230PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8bbf\u95ee\u65b0\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><h4>3. \u68c0\u67e5\u66f4\u65b0\u540e\u7684\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u4f7f\u7528<code>python --version<\/code>\u547d\u4ee4\uff0c\u786e\u8ba4\u5df2\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4f7f\u7528\u7248\u672c\u7ba1\u7406\u5de5\u5177\u5982<code>pyenv<\/code>\u4e5f\u662f\u4e00\u79cd\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u9891\u7e41\u5207\u6362\u4e0d\u540cPython\u7248\u672c\u7684\u60c5\u51b5\u4e0b\u3002<\/p>\n<\/p>\n<p><h4>1. \u5b89\u88c5pyenv<\/h4>\n<\/p>\n<p><p>\u5728Unix\u6216MacOS\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5<code>pyenv<\/code>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">curl https:\/\/pyenv.run | bash<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728Windows\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pyenv-win<\/code>\uff0c\u5176\u5b89\u88c5\u6b65\u9aa4\u53ef\u4ee5\u53c2\u8003\u5176\u5b98\u65b9\u6587\u6863\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u4e0d\u540cPython\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>pyenv<\/code>\u53ef\u4ee5\u5b89\u88c5\u591a\u79cdPython\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install 3.9.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u8bbe\u7f6e\u5168\u5c40\u6216\u672c\u5730Python\u7248\u672c<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u8bbe\u7f6e\u5168\u5c40\u9ed8\u8ba4\u7684Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv global 3.9.1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005\u4e3a\u67d0\u4e2a\u9879\u76ee\u76ee\u5f55\u8bbe\u7f6e\u672c\u5730Python\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv local 3.8.5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3\u4e0e\u5efa\u8bae<\/h3>\n<\/p>\n<p><p>\u66f4\u6539Python\u73af\u5883\u5728\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u662f\u975e\u5e38\u91cd\u8981\u7684\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u652f\u6301\u591a\u4e2a\u9879\u76ee\u3001\u591a\u4e2a\u7248\u672c\u6216\u8fdb\u884c\u6d4b\u8bd5\u65f6\u3002<strong>\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u5f00\u53d1\u6548\u7387<\/strong>\u3002\u5bf9\u4e8e\u591a\u6570\u5f00\u53d1\u8005\u800c\u8a00\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u548cAnaconda\u662f\u6700\u76f4\u63a5\u548c\u6709\u6548\u7684\u65b9\u6cd5\u3002\u66f4\u65b0Python\u7248\u672c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5229\u7528\u6700\u65b0\u7684\u8bed\u8a00\u7279\u6027\u548c\u6027\u80fd\u6539\u8fdb\u3002\u5bf9\u4e8e\u9ad8\u7ea7\u7528\u6237\uff0c\u4f7f\u7528<code>pyenv<\/code>\u7b49\u7248\u672c\u7ba1\u7406\u5de5\u5177\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5efa\u8bae\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5de5\u5177\uff0c\u4ee5\u786e\u4fdd\u5f00\u53d1\u73af\u5883\u7684\u7a33\u5b9a\u6027\u548c\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8bbe\u7f6e\u865a\u62df\u73af\u5883\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8bbe\u7f6e\u865a\u62df\u73af\u5883\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u505a\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u9694\u79bb\u9879\u76ee\u7684\u4f9d\u8d56\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u6765\u521b\u5efa\u865a\u62df\u73af\u5883\u3002\u9996\u5148\uff0c\u6253\u5f00\u7ec8\u7aef\u6216\u547d\u4ee4\u63d0\u793a\u7b26\uff0c\u8fdb\u5165\u4f60\u7684\u9879\u76ee\u76ee\u5f55\uff0c\u7136\u540e\u8fd0\u884c\u547d\u4ee4<code>python -m venv venv<\/code>\u3002\u8fd9\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cvenv\u201d\u7684\u6587\u4ef6\u5939\uff0c\u91cc\u9762\u5305\u542b\u4e86Python\u7684\u72ec\u7acb\u526f\u672c\u548c\u4e00\u4e2a\u72ec\u7acb\u7684\u5305\u76ee\u5f55\u3002\u4e3a\u4e86\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff0c\u5728Windows\u4e0a\u8fd0\u884c<code>venv\\Scripts\\activate<\/code>\uff0c\u5728macOS\u6216Linux\u4e0a\u8fd0\u884c<code>source venv\/bin\/activate<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\uff1f<\/strong><br \/>\u4f7f\u7528<code>pip<\/code>\u662f\u5b89\u88c5\u548c\u7ba1\u7406Python\u5305\u7684\u4e3b\u8981\u5de5\u5177\u3002\u5728\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4<code>pip install package_name<\/code>\u6765\u5b89\u88c5\u6240\u9700\u7684\u5305\u3002\u5982\u679c\u9700\u8981\u67e5\u770b\u5df2\u5b89\u88c5\u7684\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip list<\/code>\u547d\u4ee4\u3002\u5982\u679c\u60f3\u8981\u66f4\u65b0\u67d0\u4e2a\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pip install --upgrade package_name<\/code>\u3002\u4e3a\u4e86\u8bb0\u5f55\u9879\u76ee\u4f9d\u8d56\uff0c\u53ef\u4ee5\u8fd0\u884c<code>pip freeze &gt; requirements.txt<\/code>\uff0c\u8fd9\u4f1a\u5c06\u5f53\u524d\u73af\u5883\u4e2d\u7684\u6240\u6709\u5305\u53ca\u5176\u7248\u672c\u5199\u5165\u4e00\u4e2a\u6587\u4ef6\uff0c\u65b9\u4fbf\u5728\u5176\u4ed6\u73af\u5883\u4e2d\u91cd\u73b0\u3002<\/p>\n<p><strong>\u5982\u4f55\u6539\u53d8Python\u7684\u9ed8\u8ba4\u7248\u672c\uff1f<\/strong><br \/>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u5e0c\u671b\u6539\u53d8\u7cfb\u7edf\u4e2dPython\u7684\u9ed8\u8ba4\u7248\u672c\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u53ef\u4ee5\u901a\u8fc7\u66f4\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u7684\u8def\u5f84\u8bbe\u7f6e\u6765\u5b9e\u73b0\u3002\u5728Linux\u6216macOS\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528<code>update-alternatives<\/code>\u547d\u4ee4\u6765\u914d\u7f6e\u9ed8\u8ba4\u7684Python\u7248\u672c\u3002\u8fd0\u884c<code>sudo update-alternatives --install \/usr\/bin\/python python \/usr\/bin\/python3.x 1<\/code>\uff0c\u5176\u4e2d<code>3.x<\/code>\u662f\u4f60\u5e0c\u671b\u8bbe\u7f6e\u4e3a\u9ed8\u8ba4\u7684Python\u7248\u672c\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u9002\u5e94\u4e0d\u540c\u9879\u76ee\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u5f00\u53d1\u8fc7\u7a0b\u4e2d\uff0c\u66f4\u6539Python\u73af\u5883\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u865a\u62df\u73af\u5883\u3001\u7ba1\u7406\u5668\u5982Anaconda\u3001\u66f4\u65b0Python [&hellip;]","protected":false},"author":3,"featured_media":945017,"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\/945012"}],"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=945012"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/945012\/revisions"}],"predecessor-version":[{"id":945019,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/945012\/revisions\/945019"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/945017"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=945012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=945012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=945012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}