{"id":945828,"date":"2024-12-26T23:29:39","date_gmt":"2024-12-26T15:29:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/945828.html"},"modified":"2024-12-26T23:29:41","modified_gmt":"2024-12-26T15:29:41","slug":"python%e5%a6%82%e4%bd%95%e6%9e%84%e9%80%a0%e6%a0%91","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/945828.html","title":{"rendered":"python\u5982\u4f55\u6784\u9020\u6811"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082243\/85e0fe19-71eb-4f5f-a3a1-9c94b6944f52.webp\" alt=\"python\u5982\u4f55\u6784\u9020\u6811\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u6784\u9020\u6811\u7684\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u3001\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u5217\u8868\u3001\u4ee5\u53ca\u4f7f\u7528\u73b0\u6709\u7684\u6570\u636e\u7ed3\u6784\u5e93\u5982<code>anytree<\/code>\u548c<code>networkx<\/code>\u3002<\/strong>\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u7684\u65b9\u5f0f\u6700\u4e3a\u7075\u6d3b\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u7528\u6237\u5b9a\u4e49\u6811\u8282\u70b9\u7684\u5c5e\u6027\u548c\u884c\u4e3a\u3002\u5b57\u5178\u548c\u5217\u8868\u53ef\u4ee5\u7528\u4e8e\u7b80\u5355\u7684\u6811\u7ed3\u6784\uff0c\u4f46\u4e0d\u592a\u9002\u5408\u590d\u6742\u7684\u6811\u5f62\u6570\u636e\u3002\u4f7f\u7528\u4e13\u95e8\u7684\u5e93\u80fd\u7b80\u5316\u6811\u7684\u6784\u5efa\u548c\u64cd\u4f5c\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u8bb2\u89e3\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u6784\u9020\u6811<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u662f\u521b\u5efa\u6811\u7ed3\u6784\u7684\u7ecf\u5178\u65b9\u6cd5\u3002\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u8282\u70b9\u7c7b\uff0c\u6211\u4eec\u53ef\u4ee5\u521b\u5efa\u4efb\u610f\u590d\u6742\u7684\u6811\u7ed3\u6784\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5b9a\u4e49\u8282\u70b9\u7c7b<\/strong><\/li>\n<\/ol>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u8282\u70b9\u7c7b\uff0c\u8fd9\u4e2a\u7c7b\u5305\u542b\u8282\u70b9\u7684\u503c\u548c\u6307\u5411\u5b50\u8282\u70b9\u7684\u6307\u9488\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6811\u8282\u70b9\u81f3\u5c11\u9700\u8981\u4e00\u4e2a\u503c\u5c5e\u6027\u548c\u4e00\u4e2a\u5b50\u8282\u70b9\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class TreeNode:<\/p>\n<p>    def __init__(self, value):<\/p>\n<p>        self.value = value<\/p>\n<p>        self.children = []<\/p>\n<p>    def add_child(self, child_node):<\/p>\n<p>        self.children.append(child_node)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6784\u9020\u6811<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u521b\u5efa\u8282\u70b9\u5b9e\u4f8b\u5e76\u4f7f\u7528<code>add_child<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6784\u5efa\u6811\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">root = TreeNode(&#39;Root&#39;)<\/p>\n<p>child1 = TreeNode(&#39;Child1&#39;)<\/p>\n<p>child2 = TreeNode(&#39;Child2&#39;)<\/p>\n<p>root.add_child(child1)<\/p>\n<p>root.add_child(child2)<\/p>\n<p>child1.add_child(TreeNode(&#39;Child1.1&#39;))<\/p>\n<p>child2.add_child(TreeNode(&#39;Child2.1&#39;))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u968f\u610f\u5b9a\u4e49\u8282\u70b9\u7684\u5c5e\u6027\u548c\u65b9\u6cd5\uff0c\u9002\u5408\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5b57\u5178\u6784\u9020\u6811<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u662f\u4e00\u79cd\u7b80\u5355\u4f46\u6709\u6548\u7684\u65b9\u5f0f\u6765\u8868\u793a\u6811\u7ed3\u6784\uff0c\u5c24\u5176\u9002\u5408\u90a3\u4e9b\u4e0d\u9700\u8981\u590d\u6742\u64cd\u4f5c\u7684\u6811\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u5d4c\u5957\u5b57\u5178<\/strong><\/li>\n<\/ol>\n<p><p>\u6bcf\u4e2a\u8282\u70b9\u53ef\u4ee5\u88ab\u8868\u793a\u4e3a\u4e00\u4e2a\u952e\uff0c\u5b50\u8282\u70b9\u53ef\u4ee5\u4f5c\u4e3a\u5b57\u5178\u7684\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tree = {<\/p>\n<p>    &#39;Root&#39;: {<\/p>\n<p>        &#39;Child1&#39;: {<\/p>\n<p>            &#39;Child1.1&#39;: {}<\/p>\n<p>        },<\/p>\n<p>        &#39;Child2&#39;: {<\/p>\n<p>            &#39;Child2.1&#39;: {}<\/p>\n<p>        }<\/p>\n<p>    }<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u64cd\u4f5c\u5d4c\u5957\u5b57\u5178<\/strong><\/li>\n<\/ol>\n<p><p>\u4e3a\u4e86\u64cd\u4f5c\u8fd9\u6837\u7684\u6811\u7ed3\u6784\uff0c\u9700\u8981\u9012\u5f52\u5730\u904d\u5386\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_tree(d, level=0):<\/p>\n<p>    for key, value in d.items():<\/p>\n<p>        print(&#39; &#39; * level * 4 + str(key))<\/p>\n<p>        if isinstance(value, dict):<\/p>\n<p>            print_tree(value, level + 1)<\/p>\n<p>print_tree(tree)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5b57\u5178\u53ef\u4ee5\u5feb\u901f\u6784\u5efa\u548c\u8bbf\u95ee\u6811\u7ed3\u6784\uff0c\u4f46\u7f3a\u4e4f\u7075\u6d3b\u6027\u548c\u590d\u6742\u6570\u636e\u652f\u6301\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5217\u8868\u6784\u9020\u6811<\/p>\n<\/p>\n<p><p>\u5217\u8868\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u7b80\u5355\u7684\u6811\u5f62\u7ed3\u6784\uff0c\u901a\u5e38\u7528\u4e8e\u8868\u793a\u4e8c\u53c9\u6811\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528\u5d4c\u5957\u5217\u8868<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4e8c\u53c9\u6811\u4e2d\uff0c\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\u53ef\u4ee5\u662f\u8282\u70b9\u503c\uff0c\u7b2c\u4e8c\u4e2a\u5143\u7d20\u662f\u5de6\u5b50\u6811\uff0c\u7b2c\u4e09\u4e2a\u5143\u7d20\u662f\u53f3\u5b50\u6811\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">tree = [&#39;Root&#39;, <\/p>\n<p>        [&#39;Child1&#39;, <\/p>\n<p>         [&#39;Child1.1&#39;, [], []], <\/p>\n<p>         []], <\/p>\n<p>        [&#39;Child2&#39;, <\/p>\n<p>         [], <\/p>\n<p>         [&#39;Child2.1&#39;, [], []]]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u904d\u5386\u6811<\/strong><\/li>\n<\/ol>\n<p><p>\u9012\u5f52\u5730\u904d\u5386\u5d4c\u5957\u5217\u8868\u53ef\u4ee5\u8bbf\u95ee\u6811\u7684\u6bcf\u4e2a\u8282\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_tree(tree, level=0):<\/p>\n<p>    if tree:<\/p>\n<p>        print(&#39; &#39; * level * 4 + str(tree[0]))<\/p>\n<p>        print_tree(tree[1], level + 1)<\/p>\n<p>        print_tree(tree[2], level + 1)<\/p>\n<p>print_tree(tree)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5217\u8868\u65b9\u6cd5\u9002\u5408\u7b80\u5355\u7684\u4e8c\u53c9\u6811\uff0c\u4f46\u4e0d\u9002\u5408\u591a\u53c9\u6811\u548c\u590d\u6742\u7684\u6811\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6784\u9020\u6811<\/p>\n<\/p>\n<p><p>Python\u4e2d\u6709\u8bb8\u591a\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6784\u5efa\u548c\u64cd\u4f5c\u6811\uff0c\u4f8b\u5982<code>anytree<\/code>\u548c<code>networkx<\/code>\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528<code>anytree<\/code>\u5e93<\/strong><\/li>\n<\/ol>\n<p><p><code>anytree<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u6cd5\u6765\u521b\u5efa\u548c\u904d\u5386\u6811\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install anytree<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">from anytree import Node, RenderTree<\/p>\n<p>root = Node(&quot;Root&quot;)<\/p>\n<p>child1 = Node(&quot;Child1&quot;, parent=root)<\/p>\n<p>child2 = Node(&quot;Child2&quot;, parent=root)<\/p>\n<p>child1_1 = Node(&quot;Child1.1&quot;, parent=child1)<\/p>\n<p>child2_1 = Node(&quot;Child2.1&quot;, parent=child2)<\/p>\n<p>for pre, fill, node in RenderTree(root):<\/p>\n<p>    print(&quot;%s%s&quot; % (pre, node.name))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528<code>networkx<\/code>\u5e93<\/strong><\/li>\n<\/ol>\n<p><p><code>networkx<\/code>\u5e93\u66f4\u9002\u5408\u7528\u4e8e\u56fe\u7684\u64cd\u4f5c\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u6811\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install networkx<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><pre><code class=\"language-python\">import networkx as nx<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p>G = nx.DiGraph()<\/p>\n<p>G.add_edges_from([(&quot;Root&quot;, &quot;Child1&quot;), (&quot;Root&quot;, &quot;Child2&quot;), (&quot;Child1&quot;, &quot;Child1.1&quot;), (&quot;Child2&quot;, &quot;Child2.1&quot;)])<\/p>\n<p>nx.draw(G, with_labels=True, node_size=2000, node_color=&quot;lightblue&quot;, font_size=10, font_color=&quot;black&quot;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u5e93\u7684\u597d\u5904\u662f\u7b80\u5316\u4e86\u6811\u7684\u6784\u5efa\u548c\u64cd\u4f5c\uff0c\u7279\u522b\u662f\u5bf9\u4e8e\u9700\u8981\u590d\u6742\u64cd\u4f5c\u7684\u6811\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u9009\u62e9\u5408\u9002\u7684\u6811\u6784\u9020\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u6811\u6784\u9020\u65b9\u6cd5\u975e\u5e38\u91cd\u8981\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u5982\u679c\u9700\u8981\u7075\u6d3b\u6027\u548c\u590d\u6742\u6570\u636e\u652f\u6301<\/strong>\uff0c\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u3002<\/li>\n<li><strong>\u5982\u679c\u6811\u7ed3\u6784\u7b80\u5355\u4e14\u4e0d\u9700\u8981\u590d\u6742\u64cd\u4f5c<\/strong>\uff0c\u4f7f\u7528\u5b57\u5178\u6216\u5217\u8868\u3002<\/li>\n<li><strong>\u5982\u679c\u9879\u76ee\u4e2d\u9700\u8981\u5927\u91cf\u6811\u64cd\u4f5c\u6216\u590d\u6742\u7b97\u6cd5<\/strong>\uff0c\u4f7f\u7528\u4e13\u95e8\u7684\u5e93\u5982<code>anytree<\/code>\u6216<code>networkx<\/code>\u3002<\/li>\n<\/ul>\n<p><p>\u603b\u7ed3\u6765\u8bf4\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u6784\u9020\u6811\u7ed3\u6784\uff0c\u4ece\u57fa\u672c\u7684\u7c7b\u548c\u6307\u9488\uff0c\u5230\u5b57\u5178\u3001\u5217\u8868\uff0c\u751a\u81f3\u7b2c\u4e09\u65b9\u5e93\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u5e94\u7528\u573a\u666f\u7684\u9700\u6c42\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6811\u7ed3\u6784\u8fd8\u662f\u590d\u6742\u7684\u6811\u64cd\u4f5c\uff0cPython\u90fd\u80fd\u901a\u8fc7\u5176\u7075\u6d3b\u7684\u8bed\u6cd5\u548c\u4e30\u5bcc\u7684\u5e93\u652f\u6301\u6765\u6ee1\u8db3\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u6811\u7684\u6570\u636e\u7ed3\u6784\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u7c7b\u6765\u6784\u9020\u6811\u7684\u6570\u636e\u7ed3\u6784\u3002\u901a\u5e38\uff0c\u6811\u7531\u8282\u70b9\u7ec4\u6210\uff0c\u6bcf\u4e2a\u8282\u70b9\u5305\u542b\u6570\u636e\u548c\u6307\u5411\u5176\u5b50\u8282\u70b9\u7684\u6307\u9488\u3002\u60a8\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u8282\u70b9\u7c7b\uff0c\u5305\u542b\u6570\u636e\u548c\u5b50\u8282\u70b9\u5217\u8868\uff0c\u7136\u540e\u521b\u5efa\u6811\u7ed3\u6784\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">class TreeNode:\n    def __init__(self, value):\n        self.value = value\n        self.children = []\n\n    def add_child(self, child_node):\n        self.children.append(child_node)\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u6811\u7684\u8282\u70b9\u5e76\u5c06\u5b50\u8282\u70b9\u6dfb\u52a0\u5230\u7236\u8282\u70b9\u4e2d\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u904d\u5386\u6811\u7ed3\u6784\uff1f<\/strong><br \/>\u6811\u7684\u904d\u5386\u53ef\u4ee5\u4f7f\u7528\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\uff08DFS\uff09\u6216\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\uff08BFS\uff09\u3002\u6df1\u5ea6\u4f18\u5148\u641c\u7d22\u53ef\u4ee5\u901a\u8fc7\u9012\u5f52\u5b9e\u73b0\uff0c\u800c\u5e7f\u5ea6\u4f18\u5148\u641c\u7d22\u901a\u5e38\u4f7f\u7528\u961f\u5217\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684DFS\u904d\u5386\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def dfs(node):\n    if node is not None:\n        print(node.value)\n        for child in node.children:\n            dfs(child)\n<\/code><\/pre>\n<p>\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8bbf\u95ee\u6811\u4e2d\u7684\u6bcf\u4e2a\u8282\u70b9\u5e76\u6267\u884c\u76f8\u5173\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u6811\u4e2d\u67e5\u627e\u7279\u5b9a\u503c\uff1f<\/strong><br \/>\u5728\u6811\u4e2d\u67e5\u627e\u7279\u5b9a\u503c\u901a\u5e38\u4e5f\u53ef\u4ee5\u4f7f\u7528DFS\u6216BFS\u65b9\u6cd5\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528DFS\u67e5\u627e\u7279\u5b9a\u503c\u7684\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">def find_value(node, target):\n    if node is None:\n        return False\n    if node.value == target:\n        return True\n    for child in node.children:\n        if find_value(child, target):\n            return True\n    return False\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5c06\u904d\u5386\u6811\u4e2d\u7684\u6bcf\u4e2a\u8282\u70b9\uff0c\u76f4\u5230\u627e\u5230\u76ee\u6807\u503c\u6216\u904d\u5386\u5b8c\u6574\u68f5\u6811\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u6784\u9020\u6811\u7684\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528\u7c7b\u548c\u6307\u9488\u3001\u4f7f\u7528\u5b57\u5178\u3001\u4f7f\u7528\u5217\u8868\u3001\u4ee5\u53ca\u4f7f\u7528\u73b0\u6709\u7684\u6570\u636e\u7ed3\u6784\u5e93\u5982anytree [&hellip;]","protected":false},"author":3,"featured_media":945834,"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\/945828"}],"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=945828"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/945828\/revisions"}],"predecessor-version":[{"id":945838,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/945828\/revisions\/945838"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/945834"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=945828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=945828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=945828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}