{"id":1126429,"date":"2025-01-08T20:01:07","date_gmt":"2025-01-08T12:01:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1126429.html"},"modified":"2025-01-08T20:01:10","modified_gmt":"2025-01-08T12:01:10","slug":"python%e5%a6%82%e4%bd%95%e5%88%9d%e5%a7%8b%e5%8c%96%e4%b8%80%e4%b8%aa%e7%a9%ba%e6%a0%88","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1126429.html","title":{"rendered":"Python\u5982\u4f55\u521d\u59cb\u5316\u4e00\u4e2a\u7a7a\u6808"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25090740\/db6da5c0-7428-4463-9bee-e7710f0677a7.webp\" alt=\"Python\u5982\u4f55\u521d\u59cb\u5316\u4e00\u4e2a\u7a7a\u6808\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u521d\u59cb\u5316\u4e00\u4e2a\u7a7a\u6808\u6709\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528\u5217\u8868\u3001\u4f7f\u7528deque\u6a21\u5757\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528\u5217\u8868\u662f\u6700\u7b80\u5355\u548c\u5e38\u89c1\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3aPython\u7684\u5217\u8868\u5df2\u7ecf\u5185\u7f6e\u4e86\u6808\u7684\u57fa\u672c\u64cd\u4f5c\u2014\u2014\u6dfb\u52a0\u5143\u7d20\u548c\u5220\u9664\u5143\u7d20\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u4f7f\u7528\u8fd9\u51e0\u79cd\u65b9\u6cd5\u6765\u521d\u59cb\u5316\u548c\u64cd\u4f5c\u4e00\u4e2a\u7a7a\u6808\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5217\u8868\u521d\u59cb\u5316\u7a7a\u6808<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5217\u8868\uff08list\uff09\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u7528\u6765\u6a21\u62df\u6808\u3002Python\u7684\u5217\u8868\u652f\u6301\u5728\u672b\u5c3e\u6dfb\u52a0\u548c\u5220\u9664\u5143\u7d20\uff0c\u8fd9\u4e0e\u6808\u7684\u540e\u8fdb\u5148\u51fa\uff08LIFO\uff09\u7279\u6027\u76f8\u5339\u914d\u3002<\/p>\n<\/p>\n<p><h4>\u521d\u59cb\u5316\u7a7a\u6808<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">stack = []<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6808\u7684\u57fa\u672c\u64cd\u4f5c<\/h4>\n<\/p>\n<ol>\n<li>\n<p><strong>\u538b\u6808\uff08Push\uff09<\/strong>\uff1a\u4f7f\u7528<code>append<\/code>\u65b9\u6cd5\u5c06\u5143\u7d20\u6dfb\u52a0\u5230\u6808\u7684\u672b\u5c3e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">stack.append(1)<\/p>\n<p>stack.append(2)<\/p>\n<p>stack.append(3)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u51fa\u6808\uff08Pop\uff09<\/strong>\uff1a\u4f7f\u7528<code>pop<\/code>\u65b9\u6cd5\u4ece\u6808\u7684\u672b\u5c3e\u5220\u9664\u5e76\u8fd4\u56de\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack.pop()  # \u8fd4\u56de3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u6808\u9876\u5143\u7d20<\/strong>\uff1a\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u5217\u8868\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack[-1]  # \u8fd4\u56de2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6808\u662f\u5426\u4e3a\u7a7a<\/strong>\uff1a\u4f7f\u7528<code>len<\/code>\u51fd\u6570\u68c0\u67e5\u5217\u8868\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">is_empty = len(stack) == 0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u5217\u8868\u4f5c\u4e3a\u6808\u7684\u4f18\u70b9<\/strong>\uff1a\u5b9e\u73b0\u7b80\u5355\u3001\u64cd\u4f5c\u9ad8\u6548\u3002<br \/><strong>\u5217\u8868\u4f5c\u4e3a\u6808\u7684\u7f3a\u70b9<\/strong>\uff1a\u5f53\u6808\u975e\u5e38\u5927\u65f6\uff0c\u5220\u9664\u64cd\u4f5c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5927\u91cf\u7684\u5185\u5b58\u91cd\u5206\u914d\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528deque\u6a21\u5757\u521d\u59cb\u5316\u7a7a\u6808<\/h3>\n<\/p>\n<p><p>deque\uff08\u53cc\u7aef\u961f\u5217\uff09\u662fcollections\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u7c7b\uff0c\u63d0\u4f9b\u4e86O(1)\u65f6\u95f4\u590d\u6742\u5ea6\u7684append\u548cpop\u64cd\u4f5c\uff0c\u975e\u5e38\u9002\u5408\u7528\u4f5c\u6808\u3002<\/p>\n<\/p>\n<p><h4>\u521d\u59cb\u5316\u7a7a\u6808<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import deque<\/p>\n<p>stack = deque()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6808\u7684\u57fa\u672c\u64cd\u4f5c<\/h4>\n<\/p>\n<ol>\n<li>\n<p><strong>\u538b\u6808\uff08Push\uff09<\/strong>\uff1a\u4f7f\u7528<code>append<\/code>\u65b9\u6cd5\u5c06\u5143\u7d20\u6dfb\u52a0\u5230\u6808\u7684\u672b\u5c3e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">stack.append(1)<\/p>\n<p>stack.append(2)<\/p>\n<p>stack.append(3)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u51fa\u6808\uff08Pop\uff09<\/strong>\uff1a\u4f7f\u7528<code>pop<\/code>\u65b9\u6cd5\u4ece\u6808\u7684\u672b\u5c3e\u5220\u9664\u5e76\u8fd4\u56de\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack.pop()  # \u8fd4\u56de3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u6808\u9876\u5143\u7d20<\/strong>\uff1a\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95eedeque\u7684\u6700\u540e\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack[-1]  # \u8fd4\u56de2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6808\u662f\u5426\u4e3a\u7a7a<\/strong>\uff1a\u4f7f\u7528<code>len<\/code>\u51fd\u6570\u68c0\u67e5deque\u7684\u957f\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">is_empty = len(stack) == 0<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>deque\u4f5c\u4e3a\u6808\u7684\u4f18\u70b9<\/strong>\uff1a\u64cd\u4f5c\u9ad8\u6548\u3001\u5728\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\u6027\u80fd\u4f18\u4e8e\u5217\u8868\u3002<br \/><strong>deque\u4f5c\u4e3a\u6808\u7684\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u5bfc\u5165\u989d\u5916\u7684\u6a21\u5757\uff0c\u4f7f\u7528\u7a0d\u5fae\u590d\u6742\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u521d\u59cb\u5316\u7a7a\u6808<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u81ea\u5b9a\u4e49\u4e00\u4e2a\u6808\u7c7b\uff0c\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u63a7\u5236\u6808\u7684\u884c\u4e3a\uff0c\u5e76\u4e14\u53ef\u4ee5\u6dfb\u52a0\u66f4\u591a\u7684\u7279\u6027\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>\u521d\u59cb\u5316\u7a7a\u6808<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">class Stack:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        self.items = []<\/p>\n<p>    def is_empty(self):<\/p>\n<p>        return len(self.items) == 0<\/p>\n<p>    def push(self, item):<\/p>\n<p>        self.items.append(item)<\/p>\n<p>    def pop(self):<\/p>\n<p>        if not self.is_empty():<\/p>\n<p>            return self.items.pop()<\/p>\n<p>        else:<\/p>\n<p>            r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se IndexError(&quot;pop from empty stack&quot;)<\/p>\n<p>    def peek(self):<\/p>\n<p>        if not self.is_empty():<\/p>\n<p>            return self.items[-1]<\/p>\n<p>        else:<\/p>\n<p>            raise IndexError(&quot;peek from empty stack&quot;)<\/p>\n<p>    def size(self):<\/p>\n<p>        return len(self.items)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u6808\u7684\u57fa\u672c\u64cd\u4f5c<\/h4>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u6808<\/strong>\uff1a\u5b9e\u4f8b\u5316\u4e00\u4e2aStack\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">stack = Stack()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u538b\u6808\uff08Push\uff09<\/strong>\uff1a\u4f7f\u7528<code>push<\/code>\u65b9\u6cd5\u5c06\u5143\u7d20\u6dfb\u52a0\u5230\u6808\u7684\u672b\u5c3e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">stack.push(1)<\/p>\n<p>stack.push(2)<\/p>\n<p>stack.push(3)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u51fa\u6808\uff08Pop\uff09<\/strong>\uff1a\u4f7f\u7528<code>pop<\/code>\u65b9\u6cd5\u4ece\u6808\u7684\u672b\u5c3e\u5220\u9664\u5e76\u8fd4\u56de\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack.pop()  # \u8fd4\u56de3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u67e5\u770b\u6808\u9876\u5143\u7d20<\/strong>\uff1a\u4f7f\u7528<code>peek<\/code>\u65b9\u6cd5\u8fd4\u56de\u6808\u9876\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">top_element = stack.peek()  # \u8fd4\u56de2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u68c0\u67e5\u6808\u662f\u5426\u4e3a\u7a7a<\/strong>\uff1a\u4f7f\u7528<code>is_empty<\/code>\u65b9\u6cd5\u68c0\u67e5\u6808\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">is_empty = stack.is_empty()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u83b7\u53d6\u6808\u7684\u5927\u5c0f<\/strong>\uff1a\u4f7f\u7528<code>size<\/code>\u65b9\u6cd5\u8fd4\u56de\u6808\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">stack_size = stack.size()  # \u8fd4\u56de2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p><strong>\u81ea\u5b9a\u4e49\u7c7b\u4f5c\u4e3a\u6808\u7684\u4f18\u70b9<\/strong>\uff1a\u7075\u6d3b\u3001\u53ef\u6269\u5c55\u3002<br \/><strong>\u81ea\u5b9a\u4e49\u7c7b\u4f5c\u4e3a\u6808\u7684\u7f3a\u70b9<\/strong>\uff1a\u5b9e\u73b0\u7a0d\u5fae\u590d\u6742\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4e0d\u540c\u65b9\u6cd5\u7684\u5bf9\u6bd4<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u4e0d\u540c\u7684\u6808\u5b9e\u73b0\u65b9\u5f0f\u6709\u5404\u81ea\u7684\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u54ea\u79cd\u5b9e\u73b0\u65b9\u5f0f\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5217\u8868<\/strong>\uff1a\u9002\u5408\u7b80\u5355\u3001\u5feb\u901f\u7684\u5b9e\u73b0\u3002\u9002\u7528\u4e8e\u4e00\u822c\u7684\u6808\u64cd\u4f5c\u9700\u6c42\u3002<\/li>\n<li><strong>deque<\/strong>\uff1a\u9002\u5408\u9700\u8981\u9ad8\u6027\u80fd\u7684\u6808\u64cd\u4f5c\u7684\u573a\u666f\u3002\u7531\u4e8edeque\u7684append\u548cpop\u64cd\u4f5c\u90fd\u662fO(1)\u65f6\u95f4\u590d\u6742\u5ea6\uff0c\u56e0\u6b64\u5728\u6027\u80fd\u4e0a\u66f4\u4f18\u3002<\/li>\n<li><strong>\u81ea\u5b9a\u4e49\u7c7b<\/strong>\uff1a\u9002\u5408\u9700\u8981\u66f4\u591a\u63a7\u5236\u548c\u6269\u5c55\u529f\u80fd\u7684\u573a\u666f\u3002\u901a\u8fc7\u81ea\u5b9a\u4e49\u7c7b\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u6dfb\u52a0\u66f4\u591a\u7684\u529f\u80fd\u548c\u7279\u6027\u3002<\/li>\n<\/ol>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u521d\u59cb\u5316\u548c\u64cd\u4f5c\u4e00\u4e2a\u7a7a\u6808\u3002\u6700\u5e38\u89c1\u548c\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5217\u8868\uff0c\u4f46\u5728\u9700\u8981\u66f4\u9ad8\u6027\u80fd\u7684\u573a\u666f\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528collections\u6a21\u5757\u4e2d\u7684deque\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u6269\u5c55\u6027\u3002\u7406\u89e3\u548c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u89e3\u51b3\u5b9e\u9645\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u7a7a\u6808\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u6765\u521d\u59cb\u5316\u4e00\u4e2a\u7a7a\u6808\u3002\u53ea\u9700\u5b9a\u4e49\u4e00\u4e2a\u7a7a\u5217\u8868\uff0c\u4f8b\u5982\uff1a<code>stack = []<\/code>\u3002\u8fd9\u4e2a\u5217\u8868\u53ef\u4ee5\u7528\u4f5c\u6808\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7<code>append()<\/code>\u65b9\u6cd5\u5411\u6808\u4e2d\u6dfb\u52a0\u5143\u7d20\uff0c\u901a\u8fc7<code>pop()<\/code>\u65b9\u6cd5\u4ece\u6808\u4e2d\u79fb\u9664\u5143\u7d20\u3002<\/p>\n<p><strong>Python\u6808\u7684\u57fa\u672c\u64cd\u4f5c\u6709\u54ea\u4e9b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6808\u7684\u57fa\u672c\u64cd\u4f5c\u5305\u62ec\u5165\u6808\u548c\u51fa\u6808\u3002\u5165\u6808\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7<code>append()<\/code>\u65b9\u6cd5\u5c06\u5143\u7d20\u6dfb\u52a0\u5230\u6808\u9876\uff0c\u51fa\u6808\u64cd\u4f5c\u5219\u53ef\u4ee5\u4f7f\u7528<code>pop()<\/code>\u65b9\u6cd5\u79fb\u9664\u5e76\u8fd4\u56de\u6808\u9876\u5143\u7d20\u3002\u6b64\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>len(stack)<\/code>\u6765\u83b7\u53d6\u6808\u7684\u5927\u5c0f\uff0c\u5e76\u4f7f\u7528<code>stack[-1]<\/code>\u8bbf\u95ee\u6808\u9876\u5143\u7d20\uff0c\u4f46\u8bf7\u6ce8\u610f\u5728\u6808\u4e3a\u7a7a\u65f6\u8bbf\u95ee\u6808\u9876\u5143\u7d20\u4f1a\u5f15\u53d1\u9519\u8bef\u3002<\/p>\n<p><strong>\u5982\u4f55\u68c0\u67e5Python\u6808\u662f\u5426\u4e3a\u7a7a\uff1f<\/strong><br \/>\u8981\u68c0\u67e5Python\u4e2d\u7684\u6808\u662f\u5426\u4e3a\u7a7a\uff0c\u60a8\u53ef\u4ee5\u7b80\u5355\u5730\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\uff0c\u4f8b\u5982\uff1a<code>if not stack:<\/code>\u3002\u8fd9\u5c06\u5224\u65ad\u6808\u662f\u5426\u4e3a\u7a7a\uff0c\u82e5\u4e3a\u7a7a\u5219\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56deFalse\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6709\u6548\u5730\u9632\u6b62\u5728\u8fdb\u884c\u51fa\u6808\u64cd\u4f5c\u65f6\u51fa\u73b0\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u521d\u59cb\u5316\u4e00\u4e2a\u7a7a\u6808\u6709\u51e0\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u4f7f\u7528\u5217\u8868\u3001\u4f7f\u7528deque\u6a21\u5757\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u7c7b\u3002 \u5176\u4e2d\uff0c\u4f7f\u7528\u5217\u8868 [&hellip;]","protected":false},"author":3,"featured_media":1126436,"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\/1126429"}],"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=1126429"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1126429\/revisions"}],"predecessor-version":[{"id":1126437,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1126429\/revisions\/1126437"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1126436"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1126429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1126429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1126429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}