{"id":1130486,"date":"2025-01-08T20:40:33","date_gmt":"2025-01-08T12:40:33","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1130486.html"},"modified":"2025-01-08T20:40:35","modified_gmt":"2025-01-08T12:40:35","slug":"python%e4%b8%ad%e7%9a%84%e5%88%97%e8%a1%a8%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e4%b8%80%e4%b8%aa%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1130486.html","title":{"rendered":"python\u4e2d\u7684\u5217\u8868\u5982\u4f55\u5220\u9664\u4e00\u4e2a\u5143\u7d20"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100545\/75c2e8b4-0bc6-4b7a-82a4-38ba868ec5fa.webp\" alt=\"python\u4e2d\u7684\u5217\u8868\u5982\u4f55\u5220\u9664\u4e00\u4e2a\u5143\u7d20\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u4e2d\u7684\u4e00\u4e2a\u5143\u7d20\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528del\u8bed\u53e5\u3001remove()\u65b9\u6cd5\u3001pop()\u65b9\u6cd5\u548c\u5217\u8868\u63a8\u5bfc\u3002<\/strong> \u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u5b9e\u9645\u5e94\u7528\u7684\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528del\u8bed\u53e5<\/h3>\n<\/p>\n<p><p>del\u8bed\u53e5\u662fPython\u4e2d\u7528\u4e8e\u5220\u9664\u5bf9\u8c61\u7684\u8bed\u53e5\u3002\u5728\u5220\u9664\u5217\u8868\u4e2d\u7684\u5143\u7d20\u65f6\uff0cdel\u8bed\u53e5\u975e\u5e38\u9ad8\u6548\u3002\u60a8\u53ea\u9700\u6307\u5b9a\u8981\u5220\u9664\u7684\u5143\u7d20\u7684\u7d22\u5f15\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>del\u8bed\u53e5\u7684\u57fa\u672c\u7528\u6cd5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u6307\u5b9a\u5217\u8868\u548c\u8981\u5220\u9664\u5143\u7d20\u7684\u7d22\u5f15\u4f4d\u7f6e\u3002<\/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\u5f15\u4e3a2\u7684\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5220\u9664\u591a\u4e2a\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5220\u9664\u591a\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u3002\u5207\u7247\u5141\u8bb8\u60a8\u6307\u5b9a\u4e00\u7cfb\u5217\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, 6, 7]<\/p>\n<p>del my_list[1:4]  # \u5220\u9664\u7d22\u5f15\u4ece1\u52304\uff08\u4e0d\u5305\u62ec4\uff09\u7684\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 5, 6, 7]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u5220\u9664\u6574\u4e2a\u5217\u8868<\/h4>\n<\/p>\n<p><p>\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528del\u8bed\u53e5\u5220\u9664\u6574\u4e2a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3]<\/p>\n<p>del my_list  # \u5220\u9664\u6574\u4e2a\u5217\u8868<\/p>\n<h2><strong>print(my_list)  # \u8fd9\u5c06\u4f1a\u5f15\u53d1\u4e00\u4e2aNameError\uff0c\u56e0\u4e3amy_list\u5df2\u7ecf\u88ab\u5220\u9664<\/strong><\/h2>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528remove()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>remove()\u65b9\u6cd5\u7528\u4e8e\u5220\u9664\u5217\u8868\u4e2d\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u5143\u7d20\u3002\u4e0edel\u8bed\u53e5\u4e0d\u540c\uff0cremove()\u65b9\u6cd5\u662f\u901a\u8fc7\u503c\u6765\u5220\u9664\u5143\u7d20\u7684\uff0c\u800c\u4e0d\u662f\u901a\u8fc7\u7d22\u5f15\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>remove()\u65b9\u6cd5\u7684\u57fa\u672c\u7528\u6cd5\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u6307\u5b9a\u8981\u5220\u9664\u7684\u5143\u7d20\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>my_list.remove(3)  # \u5220\u9664\u7b2c\u4e00\u4e2a\u503c\u4e3a3\u7684\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5220\u9664\u591a\u4e2a\u76f8\u540c\u503c\u7684\u5143\u7d20<\/h4>\n<\/p>\n<p><p>remove()\u65b9\u6cd5\u53ea\u5220\u9664\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u5143\u7d20\u3002\u5982\u679c\u5217\u8868\u4e2d\u6709\u591a\u4e2a\u76f8\u540c\u503c\u7684\u5143\u7d20\uff0c\u9700\u8981\u4f7f\u7528\u5faa\u73af\u6765\u5220\u9664\u6240\u6709\u5339\u914d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 3, 3, 4, 5]<\/p>\n<p>while 3 in my_list:<\/p>\n<p>    my_list.remove(3)<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u9519\u8bef\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u6307\u5b9a\u7684\u503c\u4e0d\u5728\u5217\u8868\u4e2d\uff0cremove()\u65b9\u6cd5\u4f1a\u5f15\u53d1ValueError\u3002\u56e0\u6b64\uff0c\u901a\u5e38\u9700\u8981\u6dfb\u52a0\u9519\u8bef\u5904\u7406\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3]<\/p>\n<p>try:<\/p>\n<p>    my_list.remove(4)  # \u8bd5\u56fe\u5220\u9664\u4e00\u4e2a\u4e0d\u5b58\u5728\u7684\u503c<\/p>\n<p>except ValueError:<\/p>\n<p>    print(&quot;\u503c\u4e0d\u5728\u5217\u8868\u4e2d&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528pop()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>pop()\u65b9\u6cd5\u7528\u4e8e\u5220\u9664\u6307\u5b9a\u7d22\u5f15\u4f4d\u7f6e\u7684\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u8be5\u5143\u7d20\u3002\u5982\u679c\u4e0d\u6307\u5b9a\u7d22\u5f15\uff0c\u9ed8\u8ba4\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>pop()\u65b9\u6cd5\u7684\u57fa\u672c\u7528\u6cd5\u662f\u901a\u8fc7\u7d22\u5f15\u5220\u9664\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u8be5\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>element = my_list.pop(2)  # \u5220\u9664\u7d22\u5f15\u4e3a2\u7684\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u5b83<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p>print(element)  # \u8f93\u51fa: 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4e0d\u6307\u5b9a\u7d22\u5f15\uff0cpop()\u65b9\u6cd5\u5c06\u9ed8\u8ba4\u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>element = my_list.pop()  # \u5220\u9664\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u5b83<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 3, 4]<\/p>\n<p>print(element)  # \u8f93\u51fa: 5<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u9519\u8bef\u5904\u7406<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u5217\u8868\u4e3a\u7a7a\uff0c\u8c03\u7528pop()\u65b9\u6cd5\u4f1a\u5f15\u53d1IndexError\u3002\u56e0\u6b64\uff0c\u4e5f\u9700\u8981\u6dfb\u52a0\u9519\u8bef\u5904\u7406\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = []<\/p>\n<p>try:<\/p>\n<p>    my_list.pop()  # \u8bd5\u56fe\u4ece\u7a7a\u5217\u8868\u4e2d\u5220\u9664\u5143\u7d20<\/p>\n<p>except IndexError:<\/p>\n<p>    print(&quot;\u5217\u8868\u4e3a\u7a7a&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u751f\u6210\u65b0\u7684\u5217\u8868\u3002\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u6765\u8fc7\u6ee4\u6389\u4e0d\u9700\u8981\u7684\u5143\u7d20\uff0c\u4ece\u800c\u5b9e\u73b0\u5220\u9664\u5143\u7d20\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5220\u9664\u6307\u5b9a\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>my_list = [x for x in my_list if x != 3]  # \u5220\u9664\u503c\u4e3a3\u7684\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5220\u9664\u591a\u4e2a\u6761\u4ef6\u7684\u5143\u7d20<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u6839\u636e\u591a\u4e2a\u6761\u4ef6\u8fc7\u6ee4\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<p>my_list = [x for x in my_list if x % 2 == 0]  # \u53ea\u4fdd\u7559\u5076\u6570\u5143\u7d20<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [2, 4, 6, 8]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u4fdd\u6301\u539f\u5217\u8868\u4e0d\u53d8<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u4fdd\u6301\u539f\u5217\u8868\u4e0d\u53d8\uff0c\u53ef\u4ee5\u5728\u5217\u8868\u63a8\u5bfc\u4e2d\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>new_list = [x for x in my_list if x != 3]  # \u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868<\/p>\n<p>print(my_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5]<\/p>\n<p>print(new_list)  # \u8f93\u51fa: [1, 2, 4, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u4e2d\u7684\u4e00\u4e2a\u5143\u7d20\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec<strong>del\u8bed\u53e5\u3001remove()\u65b9\u6cd5\u3001pop()\u65b9\u6cd5\u548c\u5217\u8868\u63a8\u5bfc<\/strong>\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002del\u8bed\u53e5\u901a\u8fc7\u7d22\u5f15\u5220\u9664\u5143\u7d20\uff0c\u975e\u5e38\u9ad8\u6548\uff0c\u4f46\u9700\u8981\u77e5\u9053\u5143\u7d20\u7684\u7d22\u5f15\u3002remove()\u65b9\u6cd5\u901a\u8fc7\u503c\u5220\u9664\u5143\u7d20\uff0c\u4f46\u53ea\u5220\u9664\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u5143\u7d20\u3002pop()\u65b9\u6cd5\u901a\u8fc7\u7d22\u5f15\u5220\u9664\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u8be5\u5143\u7d20\uff0c\u975e\u5e38\u9002\u5408\u9700\u8981\u4f7f\u7528\u5220\u9664\u5143\u7d20\u7684\u573a\u666f\u3002\u5217\u8868\u63a8\u5bfc\u901a\u8fc7\u751f\u6210\u65b0\u7684\u5217\u8868\u6765\u8fc7\u6ee4\u6389\u4e0d\u9700\u8981\u7684\u5143\u7d20\uff0c\u975e\u5e38\u7075\u6d3b\uff0c\u4f46\u53ef\u80fd\u4f1a\u589e\u52a0\u5185\u5b58\u6d88\u8017\u3002<\/p>\n<\/p>\n<p><p>\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u60a8\u7684\u5177\u4f53\u9700\u6c42\u548c\u4ee3\u7801\u4e0a\u4e0b\u6587\u3002\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\uff0c\u5efa\u8bae\u6839\u636e\u4e0d\u540c\u573a\u666f\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u7684\u7279\u5b9a\u5143\u7d20\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u6765\u5220\u9664\u5217\u8868\u4e2d\u7684\u7279\u5b9a\u5143\u7d20\u3002\u5e38\u7528\u7684\u65b9\u5f0f\u5305\u62ec<code>remove()<\/code>\u65b9\u6cd5\u548c<code>del<\/code>\u8bed\u53e5\u3002<code>remove()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u5143\u7d20\u7684\u503c\u6765\u5220\u9664\u7b2c\u4e00\u4e2a\u5339\u914d\u7684\u5143\u7d20\uff0c\u800c<code>del<\/code>\u53ef\u4ee5\u901a\u8fc7\u5143\u7d20\u7684\u7d22\u5f15\u6765\u5220\u9664\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]\nmy_list.remove(3)  # \u5220\u9664\u503c\u4e3a3\u7684\u5143\u7d20\ndel my_list[1]     # \u5220\u9664\u7d22\u5f15\u4e3a1\u7684\u5143\u7d20\n<\/code><\/pre>\n<p><strong>\u5982\u679c\u6211\u60f3\u8981\u5220\u9664\u5217\u8868\u4e2d\u6240\u6709\u4e0e\u67d0\u4e2a\u503c\u76f8\u540c\u7684\u5143\u7d20\uff0c\u8be5\u600e\u4e48\u505a\uff1f<\/strong><br \/>\u8981\u5220\u9664\u5217\u8868\u4e2d\u6240\u6709\u4e0e\u67d0\u4e2a\u503c\u76f8\u540c\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u5217\u8868\uff0c\u4fdd\u7559\u4e0d\u7b49\u4e8e\u8be5\u503c\u7684\u5143\u7d20\u3002\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5728\u8fed\u4ee3\u8fc7\u7a0b\u4e2d\u4fee\u6539\u5217\u8868\uff0c\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 2, 4]\nmy_list = [x for x in my_list if x != 2]  # \u5220\u9664\u6240\u6709\u503c\u4e3a2\u7684\u5143\u7d20\n<\/code><\/pre>\n<p><strong>\u5220\u9664\u5217\u8868\u5143\u7d20\u540e\uff0c\u5982\u4f55\u67e5\u770b\u5f53\u524d\u5217\u8868\u7684\u72b6\u6001\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5220\u9664\u5143\u7d20\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6253\u5370\u5217\u8868\u6765\u67e5\u770b\u5f53\u524d\u7684\u72b6\u6001\u3002\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u8f93\u51fa\u5217\u8868\u7684\u5185\u5bb9\u3002\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]\nmy_list.remove(3)\nprint(my_list)  # \u8f93\u51fa: [1, 2, 4, 5]\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u76f4\u89c2\u5730\u786e\u8ba4\u5143\u7d20\u662f\u5426\u5df2\u6210\u529f\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5220\u9664\u5217\u8868\u4e2d\u7684\u4e00\u4e2a\u5143\u7d20\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528del\u8bed\u53e5\u3001remove()\u65b9\u6cd5\u3001pop()\u65b9\u6cd5\u548c\u5217\u8868 [&hellip;]","protected":false},"author":3,"featured_media":1130499,"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\/1130486"}],"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=1130486"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130486\/revisions"}],"predecessor-version":[{"id":1130502,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1130486\/revisions\/1130502"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1130499"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1130486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1130486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1130486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}