{"id":956998,"date":"2024-12-27T02:49:25","date_gmt":"2024-12-26T18:49:25","guid":{"rendered":""},"modified":"2024-12-27T02:49:27","modified_gmt":"2024-12-26T18:49:27","slug":"%e5%a6%82%e4%bd%95%e5%8c%ba%e5%88%86python2%e4%b8%8epython3","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/956998.html","title":{"rendered":"\u5982\u4f55\u533a\u5206python2\u4e0epython3"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100432\/846c7a68-b89c-4e5a-9bee-db06bd0d919d.webp\" alt=\"\u5982\u4f55\u533a\u5206python2\u4e0epython3\" \/><\/p>\n<p><p> <strong>\u533a\u5206Python2\u4e0ePython3\u7684\u5173\u952e\u5728\u4e8e\uff1a\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u7684\u53d8\u5316\u3001\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u5f0f\u3001\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u7684\u4e0d\u540c\u3001\u5f02\u5e38\u5904\u7406\u673a\u5236\u7684\u5dee\u5f02\u3001\u6574\u6570\u9664\u6cd5\u7684\u7ed3\u679c\u4e0d\u540c\u3002<\/strong>\u5176\u4e2d\uff0c<strong>\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u7684\u53d8\u5316<\/strong>\u662f\u6700\u663e\u8457\u7684\u7279\u5f81\u3002\u4f8b\u5982\uff0cPython3\u5f15\u5165\u4e86\u66f4\u591a\u7684\u5185\u5efa\u51fd\u6570\u3001\u6539\u8fdb\u4e86\u5f02\u5e38\u5904\u7406\u673a\u5236\uff0c\u5e76\u4f7f\u5f97\u8bed\u6cd5\u66f4\u52a0\u73b0\u4ee3\u548c\u4e00\u81f4\u3002Python2\u7684\u8bb8\u591a\u5e93\u5728Python3\u4e2d\u88ab\u91cd\u65b0\u8bbe\u8ba1\u6216\u5f03\u7528\uff0c\u56e0\u6b64\u5728\u8fdb\u884c\u4ee3\u7801\u8f6c\u6362\u65f6\uff0c\u5fc5\u987b\u7279\u522b\u6ce8\u610f\u5e93\u7684\u517c\u5bb9\u6027\u548c\u529f\u80fd\u7684\u6539\u53d8\u3002<\/p>\n<\/p>\n<p><p>Python2\u548cPython3\u5728\u7f16\u7a0b\u8bed\u8a00\u7684\u53d1\u5c55\u4e0a\u5177\u6709\u5404\u81ea\u7684\u7279\u70b9\u548c\u5e94\u7528\u573a\u666f\u3002\u4e86\u89e3\u548c\u638c\u63e1\u8fd9\u4e24\u8005\u4e4b\u95f4\u7684\u533a\u522b\uff0c\u4e0d\u4ec5\u6709\u52a9\u4e8e\u5728\u9879\u76ee\u4e2d\u505a\u51fa\u66f4\u660e\u667a\u7684\u9009\u62e9\uff0c\u8fd8\u80fd\u591f\u63d0\u5347\u81ea\u8eab\u7684\u7f16\u7a0b\u6280\u80fd\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8Python2\u4e0ePython3\u4e4b\u95f4\u7684\u5177\u4f53\u533a\u522b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u7684\u53d8\u5316<\/p>\n<\/p>\n<p><p>Python3\u5728\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u65b9\u9762\u8fdb\u884c\u4e86\u663e\u8457\u7684\u66f4\u65b0\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u52a0\u7b80\u6d01\u548c\u6613\u8bfb\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5370\u51fd\u6570\u7684\u53d8\u5316<\/strong><br \/>\u5728Python2\u4e2d\uff0c<code>print<\/code>\u662f\u4e00\u4e2a\u8bed\u53e5\uff0c\u800c\u5728Python3\u4e2d\uff0c<code>print()<\/code>\u88ab\u66f4\u6539\u4e3a\u4e00\u4e2a\u51fd\u6570\u3002\u8fd9\u79cd\u53d8\u5316\u4f7f\u5f97\u6253\u5370\u64cd\u4f5c\u66f4\u52a0\u4e00\u81f4\u548c\u7075\u6d3b\u3002\u4f8b\u5982\uff0cPython2\u7684<code>print &quot;Hello, World!&quot;<\/code>\u5728Python3\u4e2d\u9700\u8981\u5199\u6210<code>print(&quot;Hello, World!&quot;)<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9664\u6cd5\u8fd0\u7b97\u7b26\u7684\u53d8\u5316<\/strong><br \/>Python2\u4e2d\u7684\u9664\u6cd5\u8fd0\u7b97\u7b26<code>\/<\/code>\u5728\u8fdb\u884c\u6574\u6570\u9664\u6cd5\u65f6\uff0c\u7ed3\u679c\u4e3a\u6574\u6570\uff0c\u800c\u5728Python3\u4e2d\uff0c\u7ed3\u679c\u4e3a\u6d6e\u70b9\u6570\u3002\u4f8b\u5982\uff0c\u5728Python2\u4e2d\uff0c<code>5 \/ 2<\/code>\u7684\u7ed3\u679c\u662f<code>2<\/code>\uff0c\u800c\u5728Python3\u4e2d\uff0c\u7ed3\u679c\u662f<code>2.5<\/code>\u3002\u5982\u679c\u9700\u8981\u5728Python3\u4e2d\u8fdb\u884c\u6574\u6570\u9664\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>\/\/<\/code>\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5f02\u5e38\u5904\u7406\u673a\u5236\u7684\u53d8\u5316<\/strong><br \/>Python3\u5bf9\u5f02\u5e38\u5904\u7406\u8fdb\u884c\u4e86\u6539\u8fdb\uff0c<code>except<\/code>\u8bed\u53e5\u7684\u8bed\u6cd5\u53d8\u5f97\u66f4\u52a0\u4e25\u683c\u3002\u5728Python2\u4e2d\uff0c\u6355\u83b7\u5f02\u5e38\u7684\u8bed\u6cd5\u662f<code>except Exception, e:<\/code>\uff0c\u800c\u5728Python3\u4e2d\uff0c\u8bed\u6cd5\u6539\u4e3a<code>except Exception as e:<\/code>\u3002\u8fd9\u79cd\u6539\u53d8\u4f7f\u5f97\u5f02\u5e38\u4fe1\u606f\u7684\u83b7\u53d6\u66f4\u52a0\u660e\u786e\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u5f0f<\/p>\n<\/p>\n<p><p>Python2\u548cPython3\u5728\u5b57\u7b26\u4e32\u7684\u5904\u7406\u4e0a\u4e5f\u5b58\u5728\u663e\u8457\u5dee\u5f02\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u533a\u5206<\/strong><br \/>\u5728Python2\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u4ee5\u5b57\u8282\u4e3a\u5355\u4f4d\u7684\uff0c\u800c\u5728Python3\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u4ee5Unicode\u4e3a\u5355\u4f4d\u7684\u3002\u8fd9\u610f\u5473\u7740Python3\u80fd\u591f\u66f4\u597d\u5730\u5904\u7406\u591a\u8bed\u8a00\u6587\u672c\uff0c\u800c\u4e0d\u9700\u8981\u62c5\u5fc3\u7f16\u7801\u95ee\u9898\u3002\u5728Python2\u4e2d\uff0cUnicode\u5b57\u7b26\u4e32\u9700\u8981\u4f7f\u7528<code>u&quot;string&quot;<\/code>\u7684\u5f62\u5f0f\uff0c\u800c\u5728Python3\u4e2d\uff0c\u6240\u6709\u5b57\u7b26\u4e32\u9ed8\u8ba4\u5c31\u662fUnicode\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f16\u7801\u548c\u89e3\u7801\u7684\u53d8\u5316<\/strong><br \/>\u7531\u4e8e\u5b57\u7b26\u4e32\u7c7b\u578b\u7684\u53d8\u5316\uff0cPython3\u5f15\u5165\u4e86<code>bytes<\/code>\u7c7b\u578b\uff0c\u7528\u4e8e\u5904\u7406\u5b57\u8282\u6570\u636e\u3002\u8fd9\u5728\u7f51\u7edc\u7f16\u7a0b\u548c\u6587\u4ef6\u64cd\u4f5c\u4e2d\u5c24\u4e3a\u91cd\u8981\u3002\u5728Python3\u4e2d\uff0c\u5b57\u7b26\u4e32\u548c\u5b57\u8282\u4e4b\u95f4\u7684\u8f6c\u6362\u9700\u8981\u663e\u5f0f\u7f16\u7801\u548c\u89e3\u7801\uff0c\u4f8b\u5982\uff0c\u4f7f\u7528<code>encode()<\/code>\u548c<code>decode()<\/code>\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u7684\u4e0d\u540c<\/p>\n<\/p>\n<p><p>Python2\u548cPython3\u5728\u8f93\u5165\u548c\u8f93\u51fa\u51fd\u6570\u4e0a\u4e5f\u6709\u4e00\u4e9b\u533a\u522b\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8f93\u5165\u51fd\u6570\u7684\u53d8\u5316<\/strong><br \/>\u5728Python2\u4e2d\uff0c\u4f7f\u7528<code>raw_input()<\/code>\u51fd\u6570\u6765\u83b7\u53d6\u7528\u6237\u8f93\u5165\uff0c\u800c\u5728Python3\u4e2d\uff0c\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\u3002Python2\u7684<code>input()<\/code>\u51fd\u6570\u4f1a\u5c06\u8f93\u5165\u7684\u5185\u5bb9\u5f53\u4f5c\u4ee3\u7801\u6267\u884c\uff0c\u8fd9\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u95ee\u9898\uff0c\u56e0\u6b64\u5728Python3\u4e2d\u88ab\u5f03\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6587\u4ef6\u64cd\u4f5c\u7684\u53d8\u5316<\/strong><br \/>Python3\u5f15\u5165\u4e86\u66f4\u591a\u7684\u6587\u4ef6\u64cd\u4f5c\u65b9\u6cd5\uff0c\u4f8b\u5982\uff0c<code>open()<\/code>\u51fd\u6570\u4e2d\u7684<code>encoding<\/code>\u53c2\u6570\uff0c\u7528\u4e8e\u6307\u5b9a\u6587\u4ef6\u7684\u7f16\u7801\u683c\u5f0f\u3002\u8fd9\u4f7f\u5f97\u6587\u4ef6\u8bfb\u5199\u64cd\u4f5c\u66f4\u52a0\u7075\u6d3b\u548c\u5f3a\u5927\u3002\u6b64\u5916\uff0cPython3\u8fd8\u5f15\u5165\u4e86<code>with<\/code>\u8bed\u53e5\u6765\u7ba1\u7406\u6587\u4ef6\u8d44\u6e90\uff0c\u786e\u4fdd\u6587\u4ef6\u5728\u4f7f\u7528\u540e\u88ab\u6b63\u786e\u5173\u95ed\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u6574\u6570\u9664\u6cd5\u7684\u7ed3\u679c\u4e0d\u540c<\/p>\n<\/p>\n<p><p>\u5728Python2\u4e2d\uff0c\u6574\u6570\u9664\u6cd5\u7684\u7ed3\u679c\u662f\u5411\u4e0b\u53d6\u6574\u7684\u6574\u6570\uff0c\u800c\u5728Python3\u4e2d\uff0c\u6574\u6570\u9664\u6cd5\u4f1a\u8fd4\u56de\u6d6e\u70b9\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6574\u6570\u9664\u6cd5\u7684\u53d8\u5316<\/strong><br \/>\u5728Python2\u4e2d\uff0c<code>5 \/ 2<\/code>\u7684\u7ed3\u679c\u662f<code>2<\/code>\uff0c\u56e0\u4e3a\u5b83\u4f1a\u81ea\u52a8\u8fdb\u884c\u5411\u4e0b\u53d6\u6574\u3002\u800c\u5728Python3\u4e2d\uff0c<code>5 \/ 2<\/code>\u7684\u7ed3\u679c\u662f<code>2.5<\/code>\uff0c\u56e0\u4e3a\u5b83\u4f1a\u8fd4\u56de\u6d6e\u70b9\u6570\u7ed3\u679c\u3002\u4e3a\u4e86\u5728Python3\u4e2d\u8fdb\u884c\u6574\u6570\u9664\u6cd5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>\/\/<\/code>\u8fd0\u7b97\u7b26\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u517c\u5bb9\u6027\u95ee\u9898<\/strong><br \/>\u7531\u4e8e\u6574\u6570\u9664\u6cd5\u7684\u53d8\u5316\uff0c\u5f88\u591a\u5728Python2\u4e2d\u7f16\u5199\u7684\u4ee3\u7801\u5728Python3\u4e2d\u53ef\u80fd\u4f1a\u51fa\u73b0\u95ee\u9898\uff0c\u5c24\u5176\u662f\u5728\u6d89\u53ca\u5230\u7cbe\u786e\u8ba1\u7b97\u7684\u573a\u666f\u4e2d\u3002\u56e0\u6b64\uff0c\u5728\u8fc1\u79fb\u4ee3\u7801\u65f6\uff0c\u52a1\u5fc5\u4ed4\u7ec6\u68c0\u67e5\u9664\u6cd5\u64cd\u4f5c\uff0c\u786e\u4fdd\u7ed3\u679c\u7b26\u5408\u9884\u671f\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u793e\u533a\u652f\u6301\u548c\u66f4\u65b0<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b98\u65b9\u652f\u6301\u7684\u53d8\u5316<\/strong><br \/>Python2\u57282020\u5e74\u5df2\u7ecf\u505c\u6b62\u4e86\u5b98\u65b9\u652f\u6301\uff0c\u8fd9\u610f\u5473\u7740\u4e0d\u518d\u6709\u5b89\u5168\u66f4\u65b0\u548c\u6f0f\u6d1e\u4fee\u590d\u3002Python3\u662f\u76ee\u524d\u88ab\u79ef\u6781\u5f00\u53d1\u548c\u7ef4\u62a4\u7684\u7248\u672c\uff0c\u62e5\u6709\u66f4\u597d\u7684\u793e\u533a\u652f\u6301\u548c\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7b2c\u4e09\u65b9\u5e93\u7684\u517c\u5bb9\u6027<\/strong><br \/>\u968f\u7740Python3\u7684\u666e\u53ca\uff0c\u8d8a\u6765\u8d8a\u591a\u7684\u7b2c\u4e09\u65b9\u5e93\u5df2\u7ecf\u4e0d\u518d\u652f\u6301Python2\u3002\u8fd9\u4e5f\u662f\u4fc3\u4f7f\u5f00\u53d1\u8005\u8fc1\u79fb\u5230Python3\u7684\u4e00\u4e2a\u91cd\u8981\u56e0\u7d20\u3002\u5728\u9009\u62e9\u5e93\u65f6\uff0c\u52a1\u5fc5\u68c0\u67e5\u5176\u517c\u5bb9\u6027\uff0c\u4ee5\u907f\u514d\u4e0d\u5fc5\u8981\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython2\u4e0ePython3\u4e4b\u95f4\u7684\u533a\u522b\u4e3b\u8981\u4f53\u73b0\u5728\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u7684\u53d8\u5316\u3001\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u5f0f\u3001\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u7684\u4e0d\u540c\u3001\u5f02\u5e38\u5904\u7406\u673a\u5236\u7684\u5dee\u5f02\u4ee5\u53ca\u6574\u6570\u9664\u6cd5\u7684\u7ed3\u679c\u4e0d\u540c\u7b49\u65b9\u9762\u3002\u4e86\u89e3\u8fd9\u4e9b\u533a\u522b\u5bf9\u4e8e\u5f00\u53d1\u8005\u5728\u9009\u62e9Python\u7248\u672c\u548c\u7f16\u5199\u517c\u5bb9\u6027\u4ee3\u7801\u65f6\u5c24\u4e3a\u91cd\u8981\u3002\u5728\u9879\u76ee\u5f00\u53d1\u4e2d\uff0c\u5efa\u8bae\u4f18\u5148\u9009\u62e9Python3\uff0c\u4ee5\u5145\u5206\u5229\u7528\u5176\u73b0\u4ee3\u5316\u7684\u7279\u6027\u548c\u66f4\u5f3a\u7684\u793e\u533a\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5224\u65ad\u6211\u7684\u4ee3\u7801\u662f\u517c\u5bb9Python 2\u8fd8\u662fPython 3\uff1f<\/strong><br \/>\u8981\u5224\u65ad\u4ee3\u7801\u662f\u5426\u517c\u5bb9Python 2\u8fd8\u662fPython 3\uff0c\u53ef\u4ee5\u68c0\u67e5\u4ee3\u7801\u4e2d\u4f7f\u7528\u7684\u8bed\u6cd5\u548c\u5e93\u51fd\u6570\u3002\u4f8b\u5982\uff0cPython 2\u4f7f\u7528<code>print<\/code>\u8bed\u53e5\uff0c\u800cPython 3\u5219\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u3002\u6b64\u5916\uff0cPython 3\u5f15\u5165\u4e86\u65b0\u7684\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u5f0f\uff0c\u4f8b\u5982<code>bytes<\/code>\u548c<code>str<\/code>\u7c7b\u578b\u7684\u533a\u522b\u3002\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c<code>python2 -m py_compile your_script.py<\/code>\u548c<code>python3 -m py_compile your_script.py<\/code>\u6765\u6d4b\u8bd5\u4ee3\u7801\u5728\u4e0d\u540c\u7248\u672c\u4e0b\u7684\u7f16\u8bd1\u60c5\u51b5\uff0c\u4ece\u800c\u53d1\u73b0\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<p><strong>\u5728\u9879\u76ee\u4e2d\u5982\u4f55\u9009\u62e9\u4f7f\u7528Python 2\u6216Python 3\uff1f<\/strong><br \/>\u9009\u62e9Python 2\u6216Python 3\u53d6\u51b3\u4e8e\u9879\u76ee\u7684\u9700\u6c42\u548c\u4f9d\u8d56\u5173\u7cfb\u3002\u867d\u7136Python 2\u57282020\u5e74\u5df2\u505c\u6b62\u652f\u6301\uff0c\u4f46\u67d0\u4e9b\u65e7\u9879\u76ee\u4ecd\u53ef\u80fd\u4f9d\u8d56\u4e8e\u5b83\u3002\u5982\u679c\u9879\u76ee\u9700\u8981\u4f7f\u7528\u7279\u5b9a\u7684\u5e93\u6216\u6846\u67b6\uff0c\u6700\u597d\u68c0\u67e5\u8fd9\u4e9b\u5de5\u5177\u662f\u5426\u652f\u6301Python 3\u3002\u5bf9\u4e8e\u65b0\u9879\u76ee\uff0c\u5efa\u8bae\u4f7f\u7528Python 3\uff0c\u56e0\u4e3a\u5b83\u5305\u542b\u8bb8\u591a\u6539\u8fdb\u548c\u65b0\u7279\u6027\uff0c\u793e\u533a\u7684\u652f\u6301\u4e5f\u66f4\u4e3a\u6d3b\u8dc3\u3002<\/p>\n<p><strong>\u5728\u5b89\u88c5Python\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u6211\u9009\u62e9\u4e86\u6b63\u786e\u7684\u7248\u672c\uff1f<\/strong><br \/>\u5728\u5b89\u88c5Python\u65f6\uff0c\u786e\u4fdd\u4ece\u5b98\u65b9\u7f51\u7ad9\u6216\u53ef\u4fe1\u7684\u6e90\u4e0b\u8f7d\u3002\u68c0\u67e5\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u7684Python\u7248\u672c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python --version<\/code>\u6216<code>python3 --version<\/code>\u6765\u5b8c\u6210\u3002\u8bb8\u591a\u64cd\u4f5c\u7cfb\u7edf\u5141\u8bb8\u540c\u65f6\u5b89\u88c5\u591a\u4e2a\u7248\u672c\u3002\u786e\u4fdd\u5728\u9879\u76ee\u7684\u73af\u5883\u4e2d\u4f7f\u7528\u9002\u5f53\u7684\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u865a\u62df\u73af\u5883\u5de5\u5177\u5982<code>venv<\/code>\u6216<code>virtualenv<\/code>\u6765\u7ba1\u7406\u4e0d\u540c\u7248\u672c\u7684Python\u53ca\u5176\u4f9d\u8d56\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u533a\u5206Python2\u4e0ePython3\u7684\u5173\u952e\u5728\u4e8e\uff1a\u8bed\u6cd5\u548c\u6807\u51c6\u5e93\u7684\u53d8\u5316\u3001\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u5f0f\u3001\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u7684\u4e0d\u540c\u3001\u5f02\u5e38\u5904\u7406 [&hellip;]","protected":false},"author":3,"featured_media":957001,"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\/956998"}],"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=956998"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956998\/revisions"}],"predecessor-version":[{"id":957003,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/956998\/revisions\/957003"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/957001"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=956998"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=956998"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=956998"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}