{"id":1008397,"date":"2024-12-27T11:02:26","date_gmt":"2024-12-27T03:02:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1008397.html"},"modified":"2024-12-27T11:02:28","modified_gmt":"2024-12-27T03:02:28","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e5%8d%95%e5%90%91%e9%93%be%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1008397.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u5355\u5411\u94fe\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083730\/6f4dfe06-c68b-4f59-b8d5-a2adf917c218.webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u5355\u5411\u94fe\u8868\" \/><\/p>\n<p><p> <strong>Python\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u7684\u6838\u5fc3\u5728\u4e8e\u5b9a\u4e49\u8282\u70b9\u7ed3\u6784\u3001\u5b9e\u73b0\u94fe\u8868\u7684\u57fa\u672c\u64cd\u4f5c\u5982\u63d2\u5165\u3001\u5220\u9664\u548c\u904d\u5386\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u8282\u70b9\u7c7b\u6765\u5b58\u50a8\u6570\u636e\u548c\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u5f15\u7528\u3001\u7136\u540e\u5b9a\u4e49\u4e00\u4e2a\u94fe\u8868\u7c7b\u6765\u7ba1\u7406\u8fd9\u4e9b\u8282\u70b9\u3002<\/strong>\u5728\u5b9e\u73b0\u8fc7\u7a0b\u4e2d\uff0c\u5173\u952e\u5728\u4e8e\u7406\u89e3\u94fe\u8868\u7684\u52a8\u6001\u7279\u6027\u548c\u8282\u70b9\u7684\u5f15\u7528\u7ba1\u7406\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5355\u5411\u94fe\u8868\u7684\u57fa\u672c\u6982\u5ff5<\/p>\n<\/p>\n<p><p>\u5355\u5411\u94fe\u8868\u662f\u4e00\u79cd\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u7531\u4e00\u7cfb\u5217\u8282\u70b9\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8282\u70b9\u5305\u542b\u6570\u636e\u90e8\u5206\u548c\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u5f15\u7528\u3002\u94fe\u8868\u7684\u7b2c\u4e00\u4e2a\u8282\u70b9\u79f0\u4e3a\u5934\u8282\u70b9\uff08Head\uff09\uff0c\u6700\u540e\u4e00\u4e2a\u8282\u70b9\u6307\u5411None\uff0c\u8868\u793a\u94fe\u8868\u7684\u7ed3\u675f\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u8282\u70b9\u7684\u5b9a\u4e49<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7c7b\u6765\u5b9a\u4e49\u94fe\u8868\u7684\u8282\u70b9\u3002\u6bcf\u4e2a\u8282\u70b9\u901a\u5e38\u5305\u542b\u4e24\u4e2a\u5c5e\u6027\uff1a\u4e00\u4e2a\u662f\u6570\u636e\uff08\u901a\u5e38\u79f0\u4e3a<code>data<\/code>\uff09\uff0c\u53e6\u4e00\u4e2a\u662f\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\u7684\u5f15\u7528\uff08\u901a\u5e38\u79f0\u4e3a<code>next<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Node:<\/p>\n<p>    def __init__(self, data):<\/p>\n<p>        self.data = data<\/p>\n<p>        self.next = None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>2. \u94fe\u8868\u7684\u5b9a\u4e49<\/strong><\/p>\n<\/p>\n<p><p>\u94fe\u8868\u672c\u8eab\u4e5f\u662f\u4e00\u4e2a\u7c7b\uff0c\u5305\u542b\u5bf9\u94fe\u8868\u64cd\u4f5c\u7684\u65b9\u6cd5\u3002\u901a\u5e38\uff0c\u94fe\u8868\u7c7b\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u5c5e\u6027\u6765\u5b58\u50a8\u5934\u8282\u70b9\u7684\u5f15\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class LinkedList:<\/p>\n<p>    def __init__(self):<\/p>\n<p>        self.head = None<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u5355\u5411\u94fe\u8868\u7684\u57fa\u672c\u64cd\u4f5c<\/p>\n<\/p>\n<p><p><strong>1. \u63d2\u5165\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5355\u5411\u94fe\u8868\u4e2d\uff0c\u53ef\u4ee5\u5728\u5934\u90e8\u3001\u5c3e\u90e8\u6216\u4e2d\u95f4\u63d2\u5165\u8282\u70b9\u3002\u4e0d\u540c\u7684\u63d2\u5165\u64cd\u4f5c\u6839\u636e\u9700\u6c42\u9009\u62e9\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5728\u5934\u90e8\u63d2\u5165<\/strong><\/li>\n<\/ul>\n<p><p>\u5728\u5934\u90e8\u63d2\u5165\u8282\u70b9\u76f8\u5bf9\u7b80\u5355\uff0c\u53ea\u9700\u5c06\u65b0\u8282\u70b9\u7684<code>next<\/code>\u6307\u5411\u5f53\u524d\u5934\u8282\u70b9\uff0c\u7136\u540e\u66f4\u65b0\u94fe\u8868\u7684\u5934\u8282\u70b9\u4e3a\u65b0\u8282\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def insert_at_head(self, data):<\/p>\n<p>    new_node = Node(data)<\/p>\n<p>    new_node.next = self.head<\/p>\n<p>    self.head = new_node<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u5728\u5c3e\u90e8\u63d2\u5165<\/strong><\/li>\n<\/ul>\n<p><p>\u5728\u5c3e\u90e8\u63d2\u5165\u9700\u8981\u904d\u5386\u6574\u4e2a\u94fe\u8868\uff0c\u627e\u5230\u6700\u540e\u4e00\u4e2a\u8282\u70b9\uff0c\u7136\u540e\u5c06\u5176<code>next<\/code>\u6307\u5411\u65b0\u8282\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def insert_at_t<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>l(self, data):<\/p>\n<p>    new_node = Node(data)<\/p>\n<p>    if not self.head:<\/p>\n<p>        self.head = new_node<\/p>\n<p>        return<\/p>\n<p>    last = self.head<\/p>\n<p>    while last.next:<\/p>\n<p>        last = last.next<\/p>\n<p>    last.next = new_node<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>2. \u5220\u9664\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u5220\u9664\u64cd\u4f5c\u5305\u62ec\u5220\u9664\u5934\u8282\u70b9\u3001\u5c3e\u8282\u70b9\u548c\u7279\u5b9a\u503c\u7684\u8282\u70b9\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u5220\u9664\u5934\u8282\u70b9<\/strong><\/li>\n<\/ul>\n<p><p>\u5220\u9664\u5934\u8282\u70b9\u53ea\u9700\u5c06\u5934\u8282\u70b9\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def delete_head(self):<\/p>\n<p>    if self.head:<\/p>\n<p>        self.head = self.head.next<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><strong>\u5220\u9664\u7279\u5b9a\u503c\u7684\u8282\u70b9<\/strong><\/li>\n<\/ul>\n<p><p>\u5220\u9664\u7279\u5b9a\u503c\u7684\u8282\u70b9\u9700\u8981\u904d\u5386\u94fe\u8868\uff0c\u627e\u5230\u8be5\u8282\u70b9\u7684\u524d\u4e00\u4e2a\u8282\u70b9\uff0c\u7136\u540e\u66f4\u65b0\u5176<code>next<\/code>\u5f15\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def delete_by_value(self, value):<\/p>\n<p>    if not self.head:<\/p>\n<p>        return<\/p>\n<p>    if self.head.data == value:<\/p>\n<p>        self.head = self.head.next<\/p>\n<p>        return<\/p>\n<p>    current = self.head<\/p>\n<p>    while current.next and current.next.data != value:<\/p>\n<p>        current = current.next<\/p>\n<p>    if current.next:<\/p>\n<p>        current.next = current.next.next<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>3. \u904d\u5386\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u904d\u5386\u94fe\u8868\u7528\u4e8e\u8bbf\u95ee\u6bcf\u4e2a\u8282\u70b9\u7684\u6570\u636e\uff0c\u901a\u5e38\u7528\u4e8e\u663e\u793a\u94fe\u8868\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def traverse(self):<\/p>\n<p>    current = self.head<\/p>\n<p>    while current:<\/p>\n<p>        print(current.data, end=&#39; -&gt; &#39;)<\/p>\n<p>        current = current.next<\/p>\n<p>    print(&#39;None&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5e94\u7528\u4e0e\u6269\u5c55<\/p>\n<\/p>\n<p><p><strong>1. \u94fe\u8868\u7684\u4f18\u7f3a\u70b9<\/strong><\/p>\n<\/p>\n<p><p>\u5355\u5411\u94fe\u8868\u76f8\u6bd4\u4e8e\u6570\u7ec4\uff0c\u5176\u4f18\u70b9\u5728\u4e8e\u52a8\u6001\u5927\u5c0f\u548c\u5bb9\u6613\u63d2\u5165\u3001\u5220\u9664\u5143\u7d20\u3002\u7136\u800c\uff0c\u94fe\u8868\u7531\u4e8e\u4e0d\u652f\u6301\u968f\u673a\u8bbf\u95ee\uff0c\u67e5\u627e\u5143\u7d20\u7684\u6548\u7387\u8f83\u4f4e\u3002\u6b64\u5916\uff0c\u94fe\u8868\u9700\u8981\u989d\u5916\u7684\u5b58\u50a8\u7a7a\u95f4\u6765\u4fdd\u5b58\u8282\u70b9\u7684\u5f15\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>2. \u5355\u5411\u94fe\u8868\u7684\u5e94\u7528<\/strong><\/p>\n<\/p>\n<p><p>\u5355\u5411\u94fe\u8868\u5e38\u7528\u4e8e\u5b9e\u73b0\u5176\u4ed6\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5806\u6808\u3001\u961f\u5217\uff0c\u4ee5\u53ca\u7528\u4e8e\u89e3\u51b3\u9700\u8981\u52a8\u6001\u63d2\u5165\u548c\u5220\u9664\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>3. \u6269\u5c55\u64cd\u4f5c<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5b9e\u73b0\u66f4\u591a\u7684\u94fe\u8868\u64cd\u4f5c\uff0c\u4f8b\u5982\u53cd\u8f6c\u94fe\u8868\u3001\u68c0\u6d4b\u73af\u3001\u5408\u5e76\u4e24\u4e2a\u6709\u5e8f\u94fe\u8868\u7b49\u3002\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7\u64cd\u4f5c\u94fe\u8868\u8282\u70b9\u7684\u5f15\u7528\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def reverse(self):<\/p>\n<p>    prev = None<\/p>\n<p>    current = self.head<\/p>\n<p>    while current:<\/p>\n<p>        next_node = current.next<\/p>\n<p>        current.next = prev<\/p>\n<p>        prev = current<\/p>\n<p>        current = next_node<\/p>\n<p>    self.head = prev<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>4. \u5b9e\u73b0\u94fe\u8868\u7684\u8fed\u4ee3\u5668<\/strong><\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u65b9\u4fbf\u5730\u904d\u5386\u94fe\u8868\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u4f7f\u94fe\u8868\u5bf9\u8c61\u53ef\u4ee5\u76f4\u63a5\u7528\u4e8ePython\u7684\u8fed\u4ee3\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def __iter__(self):<\/p>\n<p>    current = self.head<\/p>\n<p>    while current:<\/p>\n<p>        yield current.data<\/p>\n<p>        current = current.next<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u9700\u8981\u7406\u89e3\u8282\u70b9\u7684\u5f15\u7528\u7ba1\u7406\u4ee5\u53ca\u94fe\u8868\u7684\u52a8\u6001\u7279\u6027\u3002\u901a\u8fc7\u5b9a\u4e49\u8282\u70b9\u548c\u94fe\u8868\u7c7b\uff0c\u53ef\u4ee5\u5b9e\u73b0\u63d2\u5165\u3001\u5220\u9664\u3001\u904d\u5386\u7b49\u57fa\u672c\u64cd\u4f5c\uff0c\u5e76\u6839\u636e\u9700\u8981\u8fdb\u884c\u6269\u5c55\u3002\u94fe\u8868\u662f\u4e00\u79cd\u57fa\u7840\u7684\u6570\u636e\u7ed3\u6784\uff0c\u7406\u89e3\u5176\u5b9e\u73b0\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u8bbe\u8ba1\u5176\u4ed6\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u548c\u7b97\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u521b\u5efa\u4e00\u4e2a\u5355\u5411\u94fe\u8868\u7684\u8282\u70b9\u7c7b\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u8282\u70b9\u7c7b\u6765\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u3002\u8fd9\u4e2a\u7c7b\u901a\u5e38\u5305\u542b\u4e24\u4e2a\u5c5e\u6027\uff1a\u4e00\u4e2a\u7528\u4e8e\u5b58\u50a8\u6570\u636e\uff0c\u53e6\u4e00\u4e2a\u7528\u4e8e\u6307\u5411\u4e0b\u4e00\u4e2a\u8282\u70b9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u8282\u70b9\u7c7b\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">class Node:\n    def __init__(self, data):\n        self.data = data\n        self.next = None\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u7684\u57fa\u672c\u64cd\u4f5c\uff1f<\/strong><br \/>\u5355\u5411\u94fe\u8868\u7684\u57fa\u672c\u64cd\u4f5c\u5305\u62ec\u63d2\u5165\u8282\u70b9\u3001\u5220\u9664\u8282\u70b9\u548c\u904d\u5386\u94fe\u8868\u3002\u53ef\u4ee5\u5728\u94fe\u8868\u7c7b\u4e2d\u5b9a\u4e49\u8fd9\u4e9b\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u63d2\u5165\u8282\u70b9\u65f6\uff0c\u53ef\u4ee5\u5728\u94fe\u8868\u7684\u5934\u90e8\u6216\u5c3e\u90e8\u6dfb\u52a0\u65b0\u8282\u70b9\u3002\u904d\u5386\u94fe\u8868\u5219\u901a\u8fc7\u5faa\u73af\u8bbf\u95ee\u6bcf\u4e2a\u8282\u70b9\u7684next\u5c5e\u6027\u6765\u5b9e\u73b0\u3002<\/p>\n<pre><code class=\"language-python\">class SinglyLinkedList:\n    def __init__(self):\n        self.head = None\n\n    def insert_at_head(self, data):\n        new_node = Node(data)\n        new_node.next = self.head\n        self.head = new_node\n\n    def display(self):\n        current = self.head\n        while current:\n            print(current.data, end=&#39; -&gt; &#39;)\n            current = current.next\n        print(&quot;None&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u5728\u5355\u5411\u94fe\u8868\u4e2d\u67e5\u627e\u7279\u5b9a\u7684\u5143\u7d20\uff1f<\/strong><br \/>\u5728\u5355\u5411\u94fe\u8868\u4e2d\u67e5\u627e\u5143\u7d20\u901a\u5e38\u901a\u8fc7\u904d\u5386\u6bcf\u4e2a\u8282\u70b9\u6765\u5b9e\u73b0\u3002\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u65b9\u6cd5\uff0c\u8be5\u65b9\u6cd5\u63a5\u53d7\u8981\u67e5\u627e\u7684\u503c\uff0c\u7136\u540e\u904d\u5386\u94fe\u8868\uff0c\u76f4\u5230\u627e\u5230\u8be5\u503c\u6216\u8fbe\u5230\u94fe\u8868\u7684\u672b\u5c3e\u3002<\/p>\n<pre><code class=\"language-python\">def search(self, key):\n    current = self.head\n    while current:\n        if current.data == key:\n            return True\n        current = current.next\n    return False\n<\/code><\/pre>\n<p><strong>\u5355\u5411\u94fe\u8868\u6709\u54ea\u4e9b\u4f18\u52bf\u548c\u52a3\u52bf\uff1f<\/strong><br \/>\u5355\u5411\u94fe\u8868\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u52a8\u6001\u5927\u5c0f\uff0c\u5141\u8bb8\u5728\u8fd0\u884c\u65f6\u8f7b\u677e\u6dfb\u52a0\u548c\u5220\u9664\u5143\u7d20\u3002\u4e0e\u6570\u7ec4\u76f8\u6bd4\uff0c\u5b83\u4eec\u5728\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u4e0a\u66f4\u5177\u6548\u7387\u3002\u7136\u800c\uff0c\u5355\u5411\u94fe\u8868\u7684\u52a3\u52bf\u5728\u4e8e\u8bbf\u95ee\u5143\u7d20\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u8f83\u9ad8\uff0c\u56e0\u4e3a\u9700\u8981\u4ece\u5934\u90e8\u5f00\u59cb\u904d\u5386\u5230\u76ee\u6807\u8282\u70b9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5b9e\u73b0\u5355\u5411\u94fe\u8868\u7684\u6838\u5fc3\u5728\u4e8e\u5b9a\u4e49\u8282\u70b9\u7ed3\u6784\u3001\u5b9e\u73b0\u94fe\u8868\u7684\u57fa\u672c\u64cd\u4f5c\u5982\u63d2\u5165\u3001\u5220\u9664\u548c\u904d\u5386\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u8282\u70b9\u7c7b [&hellip;]","protected":false},"author":3,"featured_media":1008405,"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\/1008397"}],"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=1008397"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1008397\/revisions"}],"predecessor-version":[{"id":1008412,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1008397\/revisions\/1008412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1008405"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1008397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1008397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1008397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}