{"id":1011401,"date":"2024-12-27T11:29:37","date_gmt":"2024-12-27T03:29:37","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1011401.html"},"modified":"2024-12-27T11:29:39","modified_gmt":"2024-12-27T03:29:39","slug":"python%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e5%88%97%e8%a1%a8%e6%9c%ab%e5%b0%be","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1011401.html","title":{"rendered":"python\u5982\u4f55\u5220\u9664\u5217\u8868\u672b\u5c3e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25085538\/a6f8f7d0-5208-4e8d-a4fa-968bcd52b0b3.webp\" alt=\"python\u5982\u4f55\u5220\u9664\u5217\u8868\u672b\u5c3e\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u672b\u5c3e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u3001\u5207\u7247\u64cd\u4f5c\u548c <code>del<\/code> \u8bed\u53e5\u7b49<\/strong>\u3002\u8fd9\u51e0\u79cd\u65b9\u6cd5\u5404\u6709\u5176\u4f18\u7f3a\u70b9\u3002\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u5220\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u8fd8\u80fd\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\u3002\u5207\u7247\u64cd\u4f5c\u548c <code>del<\/code> \u8bed\u53e5\u5219\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u5217\u8868\u4fee\u6539\u80fd\u529b\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u5220\u9664\u5217\u8868\u672b\u5c3e<\/p>\n<\/p>\n<p><p><code>pop()<\/code> \u65b9\u6cd5\u662fPython\u4e2d\u5217\u8868\u64cd\u4f5c\u7684\u4e00\u4e2a\u5185\u7f6e\u65b9\u6cd5\uff0c\u4e13\u95e8\u7528\u4e8e\u79fb\u9664\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u5e76\u4e14\u9ed8\u8ba4\u79fb\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u4fbf\uff0c\u800c\u4e14\u8fd8\u80fd\u8fd4\u56de\u88ab\u79fb\u9664\u7684\u5143\u7d20\uff0c\u4ee5\u4fbf\u5728\u9700\u8981\u65f6\u5bf9\u5176\u8fdb\u884c\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p><code>pop()<\/code> \u7684\u57fa\u672c\u7528\u6cd5\u975e\u5e38\u7b80\u5355\u3002\u5047\u8bbe\u6709\u4e00\u4e2a\u5217\u8868 <code>my_list = [1, 2, 3, 4, 5]<\/code>\uff0c\u8c03\u7528 <code>my_list.pop()<\/code> \u5c31\u4f1a\u79fb\u9664\u5e76\u8fd4\u56de\u5143\u7d20 <code>5<\/code>\u3002\u8fd9\u662f\u56e0\u4e3a <code>pop()<\/code> \u65b9\u6cd5\u7684\u9ed8\u8ba4\u53c2\u6570\u662f <code>-1<\/code>\uff0c\u5373\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8fd4\u56de\u503c\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u65f6\uff0c\u901a\u5e38\u4f1a\u5c06\u8fd4\u56de\u503c\u4fdd\u5b58\u5230\u4e00\u4e2a\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u540e\u7eed\u4f7f\u7528\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>last_element = my_list.pop()<\/p>\n<p>print(last_element)  # \u8f93\u51fa\uff1a5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\uff0c\u5982\u679c\u4f60\u9700\u8981\u5bf9\u88ab\u5220\u9664\u7684\u5143\u7d20\u8fdb\u884c\u8fdb\u4e00\u6b65\u64cd\u4f5c\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 <code>last_element<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u7a7a\u5217\u8868<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528 <code>pop()<\/code> \u65b9\u6cd5\u65f6\u9700\u8981\u6ce8\u610f\uff0c\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u8c03\u7528 <code>pop()<\/code> \u5c06\u5f15\u53d1 <code>IndexError<\/code>\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528\u524d\u6700\u597d\u68c0\u67e5\u5217\u8868\u662f\u5426\u4e3a\u7a7a\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">if my_list:<\/p>\n<p>    last_element = my_list.pop()<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u5220\u9664\u5217\u8868\u672b\u5c3e<\/p>\n<\/p>\n<p><p>\u5207\u7247\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u64cd\u4f5c\uff0c\u53ef\u4ee5\u7528\u4e8e\u4ece\u5217\u8868\u4e2d\u5220\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u5143\u7d20\u3002\u867d\u7136\u5207\u7247\u901a\u5e38\u7528\u4e8e\u83b7\u53d6\u5217\u8868\u7684\u4e00\u4e2a\u5b50\u96c6\uff0c\u4f46\u5b83\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5217\u8868\u7684\u4fee\u6539\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u8981\u5220\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u6392\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>my_list = my_list[:-1]<\/p>\n<p>print(my_list)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4f1a\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\uff0c\u4f46\u5b83\u7b80\u5355\u76f4\u63a5\uff0c\u9002\u5408\u4e0d\u9700\u8981\u4fdd\u7559\u88ab\u5220\u9664\u5143\u7d20\u7684\u573a\u5408\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u7f3a\u70b9<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5207\u7247\u7684\u4f18\u70b9\u662f\u7b80\u6d01\u660e\u4e86\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5220\u9664\u591a\u4e2a\u5143\u7d20\u65f6\uff0c\u5207\u7247\u63d0\u4f9b\u4e86\u975e\u5e38\u5f3a\u5927\u7684\u529f\u80fd\u3002\u7136\u800c\uff0c\u7f3a\u70b9\u662f\u521b\u5efa\u4e86\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u5bf9\u8c61\uff0c\u53ef\u80fd\u4f1a\u589e\u52a0\u5185\u5b58\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528 <code>del<\/code> \u8bed\u53e5\u5220\u9664\u5217\u8868\u672b\u5c3e<\/p>\n<\/p>\n<p><p><code>del<\/code> \u8bed\u53e5\u662fPython\u4e2d\u7684\u4e00\u4e2a\u5185\u7f6e\u8bed\u53e5\uff0c\u7528\u4e8e\u5220\u9664\u5bf9\u8c61\u3002\u5728\u5217\u8868\u64cd\u4f5c\u4e2d\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u79fb\u9664\u5217\u8868\u7684\u7279\u5b9a\u4f4d\u7f6e\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528 <code>del<\/code> \u8bed\u53e5\u5220\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u4e0e <code>pop()<\/code> \u7c7b\u4f3c\uff0c\u4f46\u4e0d\u4f1a\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>del my_list[-1]<\/p>\n<p>print(my_list)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5220\u9664\u591a\u4e2a\u5143\u7d20<\/strong><\/p>\n<\/p>\n<p><p><code>del<\/code> \u8bed\u53e5\u540c\u6837\u652f\u6301\u5207\u7247\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4e00\u6b21\u6027\u5220\u9664\u591a\u4e2a\u5143\u7d20\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>del my_list[2:]  # \u5220\u9664\u7d22\u5f152\u53ca\u4e4b\u540e\u7684\u6240\u6709\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa\uff1a[1, 2]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4e0e <code>pop()<\/code> \u7684\u533a\u522b<\/strong><\/p>\n<\/p>\n<p><p>\u867d\u7136 <code>del<\/code> \u548c <code>pop()<\/code> \u90fd\u53ef\u4ee5\u7528\u4e8e\u5220\u9664\u5217\u8868\u672b\u5c3e\u7684\u5143\u7d20\uff0c\u4f46 <code>del<\/code> \u66f4\u9002\u5408\u4e0d\u9700\u8981\u8fd4\u56de\u503c\u7684\u573a\u5408\uff0c\u800c <code>pop()<\/code> \u5219\u9002\u5408\u9700\u8981\u4fdd\u7559\u88ab\u5220\u9664\u5143\u7d20\u7684\u573a\u5408\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u603b\u7ed3\u4e0e\u5efa\u8bae<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u672b\u5c3e\u7684\u5143\u7d20\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u3002<strong>\u5bf9\u4e8e\u9700\u8981\u83b7\u53d6\u88ab\u5220\u9664\u5143\u7d20\u7684\u60c5\u51b5\uff0c<code>pop()<\/code> \u65b9\u6cd5\u662f\u6700\u4f73\u9009\u62e9<\/strong>\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u4e14\u529f\u80fd\u5f3a\u5927\u3002\u5bf9\u4e8e\u9700\u8981\u6279\u91cf\u5220\u9664\u6216\u5bf9\u5217\u8868\u8fdb\u884c\u590d\u6742\u4fee\u6539\u7684\u60c5\u51b5\uff0c\u5207\u7247\u64cd\u4f5c\u548c <code>del<\/code> \u8bed\u53e5\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6027\u80fd\u8003\u8651<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u5217\u8868\u8f83\u5927\u65f6\uff0c\u9009\u62e9\u9002\u5f53\u7684\u65b9\u6cd5\u5c24\u4e3a\u91cd\u8981\u3002<code>pop()<\/code> \u548c <code>del<\/code> \u64cd\u4f5c\u5728\u5220\u9664\u5355\u4e2a\u5143\u7d20\u65f6\u6548\u7387\u8f83\u9ad8\uff0c\u800c\u5207\u7247\u64cd\u4f5c\u867d\u7136\u5f3a\u5927\uff0c\u4f46\u53ef\u80fd\u4f1a\u56e0\u4e3a\u521b\u5efa\u65b0\u5217\u8868\u800c\u589e\u52a0\u4e0d\u5fc5\u8981\u7684\u5f00\u9500\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u53ef\u8bfb\u6027<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u65b9\u6cd5\u65f6\uff0c\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u540c\u6837\u91cd\u8981\u3002<code>pop()<\/code> \u65b9\u6cd5\u7531\u4e8e\u5176\u529f\u80fd\u660e\u786e\uff0c\u901a\u5e38\u66f4\u5bb9\u6613\u7406\u89e3\uff0c\u800c\u5207\u7247\u548c <code>del<\/code> \u64cd\u4f5c\u53ef\u80fd\u9700\u8981\u989d\u5916\u7684\u6ce8\u91ca\u6765\u89e3\u91ca\u5176\u610f\u56fe\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5f02\u5e38\u5904\u7406<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u65f6\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u4e0d\u786e\u5b9a\u957f\u5ea6\u7684\u5217\u8868\u65f6\uff0c\u5efa\u8bae\u52a0\u5165\u5fc5\u8981\u7684\u5f02\u5e38\u5904\u7406\u6216\u6761\u4ef6\u5224\u65ad\uff0c\u4ee5\u907f\u514d\u56e0\u5217\u8868\u4e3a\u7a7a\u6216\u7d22\u5f15\u8d85\u51fa\u8303\u56f4\u5f15\u53d1\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\u7684\u8be6\u7ec6\u8ba8\u8bba\u548c\u5bf9\u6bd4\uff0c\u76f8\u4fe1\u4f60\u5df2\u7ecf\u5bf9\u5982\u4f55\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u672b\u5c3e\u6709\u4e86\u66f4\u6df1\u5165\u7684\u7406\u89e3\u548c\u638c\u63e1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u7ed3\u5408\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5c06\u6709\u52a9\u4e8e\u7f16\u5199\u51fa\u9ad8\u6548\u3001\u4f18\u96c5\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b89\u5168\u5730\u5220\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>pop()<\/code>\u65b9\u6cd5\u5b89\u5168\u5730\u5220\u9664\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002\u8be5\u65b9\u6cd5\u4e0d\u4ec5\u4f1a\u5220\u9664\u5143\u7d20\uff0c\u8fd8\u4f1a\u8fd4\u56de\u88ab\u5220\u9664\u7684\u5143\u7d20\uff0c\u65b9\u4fbf\u540e\u7eed\u4f7f\u7528\u3002\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u8c03\u7528<code>pop()<\/code>\u4f1a\u5f15\u53d1<code>IndexError<\/code>\uff0c\u56e0\u6b64\u5728\u4f7f\u7528\u524d\u53ef\u4ee5\u68c0\u67e5\u5217\u8868\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u5220\u9664\u5217\u8868\u672b\u5c3e\u7684\u5143\u7d20\u6709\u54ea\u4e9b\u4f18\u52bf\uff1f<\/strong><br \/>\u5207\u7247\u64cd\u4f5c\u5141\u8bb8\u4f60\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u800c\u4e0d\u4fee\u6539\u539f\u59cb\u5217\u8868\u3002\u5982\u679c\u4f60\u5e0c\u671b\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u5e76\u4fdd\u7559\u539f\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>new_list = original_list[:-1]<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u65f6\u975e\u5e38\u6709\u7528\uff0c\u907f\u514d\u4e86\u539f\u5217\u8868\u7684\u76f4\u63a5\u4fee\u6539\u3002<\/p>\n<p><strong>\u5728\u5220\u9664\u5217\u8868\u672b\u5c3e\u5143\u7d20\u65f6\uff0c\u6709\u54ea\u4e9b\u6027\u80fd\u8003\u8651\uff1f<\/strong><br \/>\u4f7f\u7528<code>pop()<\/code>\u65b9\u6cd5\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(1)\uff0c\u975e\u5e38\u9ad8\u6548\u3002\u4f46\u5982\u679c\u4f7f\u7528\u5207\u7247\u521b\u5efa\u65b0\u5217\u8868\uff0c\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\uff0c\u56e0\u4e3a\u9700\u8981\u590d\u5236\u539f\u5217\u8868\u7684\u6570\u636e\u3002\u56e0\u6b64\uff0c\u5728\u9891\u7e41\u5220\u9664\u64cd\u4f5c\u7684\u60c5\u51b5\u4e0b\uff0c\u4f18\u5148\u8003\u8651\u4f7f\u7528<code>pop()<\/code>\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u672b\u5c3e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528 pop() \u65b9\u6cd5\u3001\u5207\u7247\u64cd\u4f5c\u548c del \u8bed\u53e5\u7b49\u3002\u8fd9\u51e0\u79cd\u65b9\u6cd5\u5404 [&hellip;]","protected":false},"author":3,"featured_media":1011409,"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\/1011401"}],"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=1011401"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011401\/revisions"}],"predecessor-version":[{"id":1011410,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1011401\/revisions\/1011410"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1011409"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1011401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1011401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1011401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}