{"id":931999,"date":"2024-12-26T17:49:20","date_gmt":"2024-12-26T09:49:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931999.html"},"modified":"2024-12-26T17:49:22","modified_gmt":"2024-12-26T09:49:22","slug":"%e5%a6%82%e4%bd%95%e9%99%8d%e4%bd%8epython-%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/931999.html","title":{"rendered":"\u5982\u4f55\u964d\u4f4epython \u7248\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25070043\/57bf0d1a-2512-4269-9298-cb0baacfed89.webp\" alt=\"\u5982\u4f55\u964d\u4f4epython \u7248\u672c\" \/><\/p>\n<p><p> <strong>\u964d\u4f4ePython\u7248\u672c\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u3001\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\u3001\u786e\u4fdd\u517c\u5bb9\u6027\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u662f\u4e00\u79cd\u975e\u5e38\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u8ba9\u60a8\u5728\u540c\u4e00\u53f0\u673a\u5668\u4e0a\u540c\u65f6\u7ba1\u7406\u591a\u4e2aPython\u7248\u672c\uff0c\u800c\u4e0d\u4f1a\u53d1\u751f\u51b2\u7a81\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e2d\u4f7f\u7528\u4e0d\u540c\u7684Python\u7248\u672c\uff0c\u800c\u4e0d\u5fc5\u5728\u5168\u5c40\u73af\u5883\u4e2d\u66f4\u6539Python\u7248\u672c\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u6765\u964d\u4f4ePython\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u662f\u964d\u4f4ePython\u7248\u672c\u7684\u4e00\u4e2a\u975e\u5e38\u6709\u6548\u7684\u7b56\u7565\u3002\u865a\u62df\u73af\u5883\u662f\u4e00\u4e2a\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u53ef\u4ee5\u72ec\u7acb\u4e8e\u5168\u5c40Python\u73af\u5883\u8fdb\u884c\u7ba1\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li>\u865a\u62df\u73af\u5883\u7684\u57fa\u672c\u6982\u5ff5<\/li>\n<\/ol>\n<p><p>\u865a\u62df\u73af\u5883\u5141\u8bb8\u60a8\u5728\u9879\u76ee\u7ea7\u522b\u5b89\u88c5\u4e0d\u540c\u7248\u672c\u7684Python\u548c\u5e93\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u7cfb\u7edf\u7684\u5168\u5c40Python\u73af\u5883\u3002\u5e38\u7528\u7684\u865a\u62df\u73af\u5883\u5de5\u5177\u5305\u62ecvenv\u548cvirtualenv\u3002venv\u662fPython 3.3\u53ca\u4ee5\u4e0a\u7248\u672c\u81ea\u5e26\u7684\u6a21\u5757\uff0c\u800cvirtualenv\u5219\u9700\u8981\u5355\u72ec\u5b89\u88c5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efa\u548c\u6fc0\u6d3b\u865a\u62df\u73af\u5883<\/li>\n<\/ol>\n<p><p>\u8981\u521b\u5efa\u4e00\u4e2a\u865a\u62df\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u540d\u4e3amyenv\u7684\u865a\u62df\u73af\u5883\u3002\u8981\u6fc0\u6d3b\u8be5\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5728Windows\u4e0a\uff1a<\/li>\n<\/ul>\n<p><pre><code class=\"language-bash\">myenv\\Scripts\\activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li>\u5728Unix\u6216MacOS\u4e0a\uff1a<\/li>\n<\/ul>\n<p><pre><code class=\"language-bash\">source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\u548c\u76f8\u5173\u5e93\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python<\/li>\n<\/ol>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u60a8\u53ef\u4ee5\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528pyenv\u4e0evirtualenv\u7ed3\u5408\u7684\u65b9\u5f0f\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5pyenv\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>\u7136\u540e\uff0c\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv install 3.x.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u4f7f\u7528pyenv virtualenv\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pyenv virtualenv 3.x.x myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u5728\u865a\u62df\u73af\u5883\u4e2d\u4f7f\u7528\u7279\u5b9a\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python<\/p>\n<\/p>\n<p><p>\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\u4e5f\u662f\u964d\u4f4ePython\u7248\u672c\u7684\u6709\u6548\u65b9\u6cd5\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ece\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPython\u5b89\u88c5\u5305\u6216\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d<\/li>\n<\/ol>\n<p><p>\u60a8\u53ef\u4ee5\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/downloads\/%EF%BC%89%EF%BC%8C%E9%80%89%E6%8B%A9%E6%89%80%E9%9C%80%E7%9A%84Python%E7%89%88%E6%9C%AC%EF%BC%8C%E4%B8%8B%E8%BD%BD%E5%AF%B9%E5%BA%94%E7%9A%84%E5%AE%89%E8%A3%85%E5%8C%85%EF%BC%8C%E5%B9%B6%E6%8C%89%E7%85%A7%E6%8F%90%E7%A4%BA%E5%AE%89%E8%A3%85%E3%80%82\">https:\/\/www.python.org\/downloads\/\uff09\uff0c\u9009\u62e9\u6240\u9700\u7684Python\u7248\u672c\uff0c\u4e0b\u8f7d\u5bf9\u5e94\u7684\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u63d0\u793a\u5b89\u88c5\u3002<\/a><\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\u5b89\u88c5<\/li>\n<\/ol>\n<p><p>\u5728Linux\u7cfb\u7edf\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\uff08\u5982apt\u3001yum\u7b49\uff09\u6765\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684Python\u3002\u4f8b\u5982\uff0c\u5728Ubuntu\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install python3.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728MacOS\u4e0a\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Homebrew\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python@3.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/li>\n<\/ol>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u7cfb\u7edf\u7684PATH\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u786e\u4fdd\u7ec8\u7aef\u4e2d\u4f7f\u7528\u7684\u662f\u6240\u9700\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u786e\u4fdd\u517c\u5bb9\u6027<\/p>\n<\/p>\n<p><p>\u5728\u964d\u4f4ePython\u7248\u672c\u65f6\uff0c\u786e\u4fdd\u4ee3\u7801\u7684\u517c\u5bb9\u6027\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u60a8\u53ef\u80fd\u9700\u8981\u5bf9\u4ee3\u7801\u8fdb\u884c\u4e00\u4e9b\u8c03\u6574\uff0c\u4ee5\u4f7f\u5176\u80fd\u591f\u5728\u8f83\u4f4e\u7248\u672c\u7684Python\u4e0a\u8fd0\u884c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u68c0\u67e5\u4ee3\u7801\u7684\u7248\u672c\u4f9d\u8d56<\/li>\n<\/ol>\n<p><p>\u5728\u964d\u4f4ePython\u7248\u672c\u524d\uff0c\u60a8\u9700\u8981\u68c0\u67e5\u4ee3\u7801\u4e2d\u662f\u5426\u4f7f\u7528\u4e86\u8f83\u65b0\u7248\u672cPython\u7684\u7279\u6027\u6216\u5e93\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528caniusepython3\u5de5\u5177\u6765\u68c0\u67e5\u4ee3\u7801\u5bf9Python\u7248\u672c\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4fee\u6539\u4e0d\u517c\u5bb9\u7684\u4ee3\u7801<\/li>\n<\/ol>\n<p><p>\u5982\u679c\u53d1\u73b0\u4ee3\u7801\u4e2d\u5b58\u5728\u4e0d\u517c\u5bb9\u7684\u90e8\u5206\uff0c\u60a8\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u4fee\u6539\u3002\u4f8b\u5982\uff0cPython 3.6\u5f15\u5165\u4e86f-string\u8bed\u6cd5\uff0c\u5982\u679c\u60a8\u8981\u964d\u52303.5\u7248\u672c\uff0c\u5219\u9700\u8981\u5c06f-string\u66ff\u6362\u4e3aformat\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u6d4b\u8bd5\u4ee3\u7801<\/li>\n<\/ol>\n<p><p>\u6700\u540e\uff0c\u60a8\u9700\u8981\u5728\u65b0\u7684Python\u73af\u5883\u4e2d\u6d4b\u8bd5\u4ee3\u7801\uff0c\u4ee5\u786e\u4fdd\u5176\u5728\u8f83\u4f4e\u7248\u672c\u7684Python\u4e0a\u8fd0\u884c\u826f\u597d\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u5355\u5143\u6d4b\u8bd5\u6846\u67b6\uff08\u5982unittest\u3001pytest\u7b49\uff09\u6765\u81ea\u52a8\u5316\u6d4b\u8bd5\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528Docker\u8fdb\u884c\u7248\u672c\u7ba1\u7406<\/p>\n<\/p>\n<p><p>\u4f7f\u7528Docker\u8fdb\u884c\u7248\u672c\u7ba1\u7406\u4e5f\u662f\u4e00\u79cd\u975e\u5e38\u6709\u6548\u7684\u65b9\u6cd5\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u90e8\u7f72\u65f6\u3002<\/p>\n<\/p>\n<ol>\n<li>Docker\u7684\u57fa\u672c\u6982\u5ff5<\/li>\n<\/ol>\n<p><p>Docker\u662f\u4e00\u79cd\u5bb9\u5668\u5316\u6280\u672f\uff0c\u5141\u8bb8\u60a8\u5728\u9694\u79bb\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u5e94\u7528\u7a0b\u5e8f\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7Dockerfile\u6307\u5b9a\u8981\u4f7f\u7528\u7684Python\u7248\u672c\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u521b\u5efaDockerfile<\/li>\n<\/ol>\n<p><p>\u521b\u5efa\u4e00\u4e2aDockerfile\uff0c\u5e76\u5728\u5176\u4e2d\u6307\u5b9a\u6240\u9700\u7684Python\u7248\u672c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-dockerfile\">FROM python:3.x<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u6784\u5efa\u548c\u8fd0\u884cDocker\u955c\u50cf<\/li>\n<\/ol>\n<p><p>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6784\u5efaDocker\u955c\u50cf\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">docker build -t myapp .<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u8fd0\u884cDocker\u5bb9\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">docker run -it myapp<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7Docker\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u7ba1\u7406\u548c\u5207\u6362Python\u7248\u672c\uff0c\u800c\u65e0\u9700\u5728\u672c\u5730\u7cfb\u7edf\u4e2d\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u964d\u4f4ePython\u7248\u672c\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u3001\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\u4ee5\u53ca\u786e\u4fdd\u4ee3\u7801\u517c\u5bb9\u6027\u662f\u5173\u952e\u6b65\u9aa4\u3002\u901a\u8fc7\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e2d\u7075\u6d3b\u5730\u4f7f\u7528\u4e0d\u540c\u7248\u672c\u7684Python\uff0c\u800c\u4e0d\u5fc5\u5728\u5168\u5c40\u73af\u5883\u4e2d\u8fdb\u884c\u66f4\u6539\u3002\u6b64\u5916\uff0c\u4f7f\u7528Docker\u53ef\u4ee5\u8fdb\u4e00\u6b65\u7b80\u5316\u7248\u672c\u7ba1\u7406\uff0c\u7279\u522b\u662f\u5728\u9700\u8981\u5728\u591a\u4e2a\u73af\u5883\u4e2d\u90e8\u7f72\u65f6\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u66f4\u597d\u5730\u7ba1\u7406Python\u7248\u672c\uff0c\u4ece\u800c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u548c\u4ee3\u7801\u7684\u53ef\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u786e\u8ba4\u6211\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\uff1f<\/strong><br \/>\u8981\u68c0\u67e5\u5f53\u524d\u5b89\u88c5\u7684Python\u7248\u672c\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u3002\u8fd9\u5c06\u663e\u793a\u51fa\u4f60\u5f53\u524d\u4f7f\u7528\u7684Python\u7248\u672c\u53f7\u3002\u786e\u4fdd\u5728\u7cfb\u7edf\u4e2d\u6b63\u786e\u8bbe\u7f6e\u4e86Python\u7684\u73af\u5883\u53d8\u91cf\uff0c\u4ee5\u4fbf\u547d\u4ee4\u80fd\u591f\u6b63\u5e38\u6267\u884c\u3002<\/p>\n<p><strong>\u5728\u964d\u7ea7Python\u7248\u672c\u4e4b\u524d\uff0c\u6211\u9700\u8981\u5907\u4efd\u54ea\u4e9b\u6587\u4ef6\u6216\u73af\u5883\uff1f<\/strong><br \/>\u5728\u964d\u7ea7Python\u7248\u672c\u4e4b\u524d\uff0c\u5efa\u8bae\u5907\u4efd\u4f60\u7684\u9879\u76ee\u6587\u4ef6\u548c\u865a\u62df\u73af\u5883\u3002\u7279\u522b\u662f\u4f7f\u7528<code>pip<\/code>\u5b89\u88c5\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c<code>pip freeze &gt; requirements.txt<\/code>\u547d\u4ee4\u5c06\u5f53\u524d\u73af\u5883\u4e2d\u7684\u6240\u6709\u4f9d\u8d56\u5e93\u4fdd\u5b58\u5230\u4e00\u4e2a\u6587\u672c\u6587\u4ef6\u4e2d\uff0c\u4ee5\u4fbf\u5728\u65b0\u7248\u672c\u4e2d\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<p><strong>\u964d\u7ea7Python\u7248\u672c\u540e\uff0c\u6211\u9700\u8981\u91cd\u65b0\u5b89\u88c5\u5e93\u5417\uff1f<\/strong><br \/>\u4e00\u822c\u60c5\u51b5\u4e0b\uff0c\u964d\u7ea7Python\u7248\u672c\u540e\uff0c\u539f\u6709\u7684\u5e93\u53ef\u80fd\u4e0d\u518d\u517c\u5bb9\u3002\u56e0\u6b64\uff0c\u5efa\u8bae\u5728\u964d\u7ea7\u540e\u4f7f\u7528\u4f60\u4e4b\u524d\u5907\u4efd\u7684<code>requirements.txt<\/code>\u6587\u4ef6\uff0c\u901a\u8fc7\u8fd0\u884c<code>pip install -r requirements.txt<\/code>\u6765\u91cd\u65b0\u5b89\u88c5\u6240\u9700\u7684\u5e93\uff0c\u4ee5\u786e\u4fdd\u9879\u76ee\u80fd\u591f\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u964d\u4f4ePython\u7248\u672c\u7684\u4e3b\u8981\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528\u865a\u62df\u73af\u5883\u7ba1\u7406\u5de5\u5177\u3001\u5b89\u88c5\u6240\u9700\u7248\u672c\u7684Python\u3001\u786e\u4fdd\u517c\u5bb9\u6027\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u865a\u62df [&hellip;]","protected":false},"author":3,"featured_media":932000,"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\/931999"}],"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=931999"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931999\/revisions"}],"predecessor-version":[{"id":932001,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/931999\/revisions\/932001"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/932000"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=931999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=931999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=931999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}