{"id":1180664,"date":"2025-01-15T18:41:00","date_gmt":"2025-01-15T10:41:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1180664.html"},"modified":"2025-01-15T18:41:20","modified_gmt":"2025-01-15T10:41:20","slug":"python%e5%a6%82%e4%bd%95%e6%af%94%e8%be%83%e5%ad%97%e5%85%b8%e7%9a%84%e5%a4%a7%e5%b0%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1180664.html","title":{"rendered":"python\u5982\u4f55\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25125324\/835b90b9-bb16-4fe3-83ea-85fbbedd4965.webp\" alt=\"python\u5982\u4f55\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u5229\u7528\u5b57\u5178\u7684\u957f\u5ea6\u3001\u6bd4\u8f83\u952e\u503c\u5bf9\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u3002<\/strong>\u5176\u4e2d\uff0c\u901a\u8fc7\u6bd4\u8f83\u5b57\u5178\u7684\u957f\u5ea6\u662f\u4e00\u79cd\u6bd4\u8f83\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u6bd4\u8f83\u5b57\u5178\u7684\u957f\u5ea6\u6765\u5224\u65ad\u5b57\u5178\u7684\u5927\u5c0f\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u5f0f\u3002Python\u4e2d\uff0c\u5b57\u5178\u7684\u957f\u5ea6\u53ef\u4ee5\u901a\u8fc7\u5185\u7f6e\u51fd\u6570<code>len()<\/code>\u83b7\u53d6\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>dict2 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>if len(dict1) &gt; len(dict2):<\/p>\n<p>    print(&quot;dict1 is larger&quot;)<\/p>\n<p>elif len(dict1) &lt; len(dict2):<\/p>\n<p>    print(&quot;dict2 is larger&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;dict1 and dict2 are of the same size&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e00\u3001\u5229\u7528\u5b57\u5178\u7684\u957f\u5ea6<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u6bd4\u8f83\u5b57\u5178\u7684\u957f\u5ea6\uff0c\u6211\u4eec\u53ef\u4ee5\u5feb\u901f\u5224\u65ad\u4e24\u4e2a\u5b57\u5178\u7684\u5927\u5c0f\u5173\u7cfb\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u3001\u6613\u4e8e\u7406\u89e3\u548c\u5b9e\u73b0\u3002\u4f46\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5b57\u5178\u7684\u957f\u5ea6\u53ea\u80fd\u53cd\u6620\u5b57\u5178\u4e2d\u952e\u503c\u5bf9\u7684\u6570\u91cf\uff0c\u4e0d\u80fd\u53cd\u6620\u6bcf\u4e2a\u952e\u503c\u5bf9\u7684\u5185\u5bb9\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4e24\u4e2a\u957f\u5ea6\u76f8\u540c\u7684\u5b57\u5178\uff0c\u5176\u952e\u503c\u5bf9\u7684\u5185\u5bb9\u53ef\u80fd\u5b8c\u5168\u4e0d\u540c\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5149\u901a\u8fc7\u957f\u5ea6\u6bd4\u8f83\u6765\u5224\u65ad\u5b57\u5178\u7684\u5927\u5c0f\u662f\u4e0d\u591f\u7684\uff0c\u9700\u8981\u8fdb\u4e00\u6b65\u6bd4\u8f83\u6bcf\u4e2a\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6bd4\u8f83\u952e\u503c\u5bf9<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u9700\u8981\u6bd4\u8f83\u5b57\u5178\u4e2d\u6bcf\u4e2a\u952e\u503c\u5bf9\u7684\u5927\u5c0f\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5b57\u5178\u4e2d\u7684\u952e\u503c\u5bf9\uff0c\u5e76\u9010\u4e00\u8fdb\u884c\u6bd4\u8f83\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def compare_dicts(dict1, dict2):<\/p>\n<p>    if dict1 == dict2:<\/p>\n<p>        return &quot;dict1 and dict2 are equal&quot;<\/p>\n<p>    for key in dict1:<\/p>\n<p>        if key not in dict2:<\/p>\n<p>            return &quot;dict2 is smaller&quot;<\/p>\n<p>        elif dict1[key] &gt; dict2[key]:<\/p>\n<p>            return &quot;dict1 is larger&quot;<\/p>\n<p>        elif dict1[key] &lt; dict2[key]:<\/p>\n<p>            return &quot;dict2 is larger&quot;<\/p>\n<p>    for key in dict2:<\/p>\n<p>        if key not in dict1:<\/p>\n<p>            return &quot;dict1 is smaller&quot;<\/p>\n<p>    return &quot;dict1 and dict2 are equal&quot;<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 3}<\/p>\n<p>dict2 = {&#39;a&#39;: 1, &#39;b&#39;: 2, &#39;c&#39;: 4}<\/p>\n<p>result = compare_dicts(dict1, dict2)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u7684\u65b9\u6cd5\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5b9a\u4e49\u66f4\u4e3a\u590d\u6742\u7684\u6bd4\u8f83\u51fd\u6570\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u6765\u5224\u65ad\u5b57\u5178\u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff0c\u8003\u8651\u5b57\u5178\u7684\u952e\u3001\u503c\u7684\u7c7b\u578b\u3001\u5b57\u5178\u5d4c\u5957\u7b49\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def custom_compare(dict1, dict2):<\/p>\n<p>    if dict1 == dict2:<\/p>\n<p>        return &quot;dict1 and dict2 are equal&quot;<\/p>\n<p>    if len(dict1) != len(dict2):<\/p>\n<p>        return &quot;dict1 is larger&quot; if len(dict1) &gt; len(dict2) else &quot;dict2 is larger&quot;<\/p>\n<p>    for key in sorted(dict1):<\/p>\n<p>        if key not in dict2:<\/p>\n<p>            return &quot;dict1 is larger&quot;<\/p>\n<p>        elif dict1[key] != dict2[key]:<\/p>\n<p>            if isinstance(dict1[key], dict) and isinstance(dict2[key], dict):<\/p>\n<p>                return custom_compare(dict1[key], dict2[key])<\/p>\n<p>            else:<\/p>\n<p>                return &quot;dict1 is larger&quot; if dict1[key] &gt; dict2[key] else &quot;dict2 is larger&quot;<\/p>\n<p>    return &quot;dict1 and dict2 are equal&quot;<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;x&#39;: 2, &#39;y&#39;: 3}, &#39;c&#39;: 3}<\/p>\n<p>dict2 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;x&#39;: 2, &#39;y&#39;: 4}, &#39;c&#39;: 3}<\/p>\n<p>result = custom_compare(dict1, dict2)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b57\u5178\u6bd4\u8f83\u7684\u5176\u4ed6\u8003\u8651<\/h3>\n<\/p>\n<p><p>\u5728\u6bd4\u8f83\u5b57\u5178\u5927\u5c0f\u7684\u8fc7\u7a0b\u4e2d\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u952e\u7684\u987a\u5e8f<\/strong>\uff1a\u5728Python\u4e2d\uff0c\u5b57\u5178\u662f\u65e0\u5e8f\u7684\u3002\u5982\u679c\u9700\u8981\u6bd4\u8f83\u5b57\u5178\u7684\u952e\u987a\u5e8f\uff0c\u53ef\u4ee5\u5148\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u6392\u5e8f\uff0c\u7136\u540e\u518d\u8fdb\u884c\u6bd4\u8f83\u3002<\/li>\n<li><strong>\u5d4c\u5957\u5b57\u5178<\/strong>\uff1a\u5982\u679c\u5b57\u5178\u4e2d\u5305\u542b\u5d4c\u5957\u5b57\u5178\uff0c\u9700\u8981\u9012\u5f52\u5730\u8fdb\u884c\u6bd4\u8f83\u3002<\/li>\n<li><strong>\u952e\u503c\u5bf9\u7684\u6570\u636e\u7c7b\u578b<\/strong>\uff1a\u5b57\u5178\u4e2d\u7684\u952e\u503c\u5bf9\u53ef\u4ee5\u662f\u4e0d\u540c\u7684\u6570\u636e\u7c7b\u578b\u3002\u5728\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u9700\u8981\u8003\u8651\u8fd9\u4e9b\u6570\u636e\u7c7b\u578b\u7684\u6bd4\u8f83\u89c4\u5219\u3002<\/li>\n<li><strong>\u6027\u80fd<\/strong>\uff1a\u5bf9\u4e8e\u5927\u89c4\u6a21\u7684\u5b57\u5178\uff0c\u6bd4\u8f83\u7684\u6027\u80fd\u53ef\u80fd\u662f\u4e00\u4e2a\u95ee\u9898\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u66f4\u52a0\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u6216\u7b97\u6cd5\u6765\u8fdb\u884c\u6bd4\u8f83\u3002<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u5185\u7f6e\u65b9\u6cd5\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u7b2c\u4e09\u65b9\u5e93\u6765\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\u3002\u4f8b\u5982\uff0c<code>deepdiff<\/code>\u5e93\u53ef\u4ee5\u7528\u4e8e\u6bd4\u8f83\u590d\u6742\u7684\u5b57\u5178\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u5b89\u88c5<code>deepdiff<\/code>\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install deepdiff<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>deepdiff<\/code>\u5e93\u8fdb\u884c\u5b57\u5178\u6bd4\u8f83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from deepdiff import DeepDiff<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;x&#39;: 2, &#39;y&#39;: 3}, &#39;c&#39;: 3}<\/p>\n<p>dict2 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;x&#39;: 2, &#39;y&#39;: 4}, &#39;c&#39;: 3}<\/p>\n<p>diff = DeepDiff(dict1, dict2)<\/p>\n<p>print(diff)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff0c\u5305\u62ec\u5229\u7528\u5b57\u5178\u7684\u957f\u5ea6\u3001\u6bd4\u8f83\u952e\u503c\u5bf9\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u548c\u7b2c\u4e09\u65b9\u5e93\u3002\u6bcf\u79cd\u65b9\u6cd5\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>\u5229\u7528\u5b57\u5178\u7684\u957f\u5ea6<\/strong>\u662f\u4e00\u79cd\u7b80\u5355\u76f4\u89c2\u7684\u6bd4\u8f83\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5b57\u5178\u4e2d\u952e\u503c\u5bf9\u6570\u91cf\u8f83\u5c11\u4e14\u4e0d\u9700\u8981\u6bd4\u8f83\u5177\u4f53\u5185\u5bb9\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p><strong>\u6bd4\u8f83\u952e\u503c\u5bf9<\/strong>\u53ef\u4ee5\u66f4\u4e3a\u7ec6\u81f4\u5730\u5224\u65ad\u5b57\u5178\u7684\u5927\u5c0f\uff0c\u9002\u7528\u4e8e\u9700\u8981\u9010\u4e00\u6bd4\u8f83\u5b57\u5178\u4e2d\u6bcf\u4e2a\u952e\u503c\u5bf9\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong>\u53ef\u4ee5\u7075\u6d3b\u5e94\u5bf9\u5404\u79cd\u590d\u6742\u60c5\u51b5\uff0c\u5982\u5d4c\u5957\u5b57\u5178\u3001\u952e\u503c\u5bf9\u7684\u6570\u636e\u7c7b\u578b\u7b49\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/strong>\u5219\u63d0\u4f9b\u4e86\u4e00\u79cd\u9ad8\u6548\u3001\u4fbf\u6377\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u9700\u8981\u5904\u7406\u590d\u6742\u5b57\u5178\u7ed3\u6784\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u6765\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5224\u65ad\u4e24\u4e2a\u5b57\u5178\u662f\u5426\u76f8\u7b49\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>==<\/code>\u8fd0\u7b97\u7b26\u6765\u5224\u65ad\u4e24\u4e2a\u5b57\u5178\u662f\u5426\u76f8\u7b49\u3002\u4e24\u4e2a\u5b57\u5178\u88ab\u8ba4\u4e3a\u662f\u76f8\u7b49\u7684\uff0c\u5f53\u5b83\u4eec\u7684\u952e\u548c\u503c\u90fd\u5b8c\u5168\u76f8\u540c\u3002\u8fd9\u5305\u62ec\u952e\u7684\u987a\u5e8f\u65e0\u5173\u7d27\u8981\uff0c\u53ea\u8981\u5b83\u4eec\u7684\u5185\u5bb9\u76f8\u540c\u5373\u53ef\u3002\u5982\u679c\u60f3\u6bd4\u8f83\u5b57\u5178\u7684\u90e8\u5206\u5185\u5bb9\uff0c\u53ef\u4ee5\u63d0\u53d6\u9700\u8981\u7684\u952e\u5e76\u8fdb\u884c\u9010\u4e00\u6bd4\u8f83\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u662f\u5426\u53ef\u4ee5\u76f4\u63a5\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\uff1f<\/strong><br \/>\u5b57\u5178\u672c\u8eab\u4e0d\u652f\u6301\u76f4\u63a5\u7684\u5927\u5c0f\u6bd4\u8f83\uff0c\u4f8b\u5982\u4f7f\u7528<code>&gt;<\/code>\u6216<code>&lt;<\/code>\u8fd0\u7b97\u7b26\u3002\u8fd9\u662f\u56e0\u4e3a\u5b57\u5178\u662f\u65e0\u5e8f\u7684\u96c6\u5408\u7c7b\u578b\uff0c\u6bd4\u8f83\u7684\u610f\u4e49\u4e0d\u660e\u786e\u3002\u5982\u679c\u60f3\u8981\u6bd4\u8f83\u4e24\u4e2a\u5b57\u5178\u7684\u5927\u5c0f\uff0c\u53ef\u4ee5\u8003\u8651\u6bd4\u8f83\u5b83\u4eec\u7684\u957f\u5ea6\uff08\u4f7f\u7528<code>len()<\/code>\u51fd\u6570\uff09\uff0c\u6216\u8005\u6839\u636e\u7279\u5b9a\u7684\u4e1a\u52a1\u903b\u8f91\u5b9a\u4e49\u6bd4\u8f83\u6807\u51c6\uff0c\u6bd4\u5982\u6839\u636e\u5b57\u5178\u4e2d\u67d0\u4e2a\u952e\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<p><strong>\u5982\u4f55\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\u5e76\u6bd4\u8f83\u5b83\u4eec\u7684\u5927\u5c0f\uff1f<\/strong><br \/>\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\u53ef\u4ee5\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u6216\u5b57\u5178\u63a8\u5bfc\u5f0f\u3002\u5728\u5408\u5e76\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u5408\u5e76\u540e\u7684\u5b57\u5178\u7684\u957f\u5ea6\u6216\u7279\u5b9a\u952e\u7684\u503c\u6765\u8fdb\u884c\u5927\u5c0f\u6bd4\u8f83\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>len(merged_dict)<\/code>\u6765\u83b7\u53d6\u5408\u5e76\u540e\u5b57\u5178\u7684\u5927\u5c0f\u3002\u5982\u679c\u9700\u8981\u6839\u636e\u7279\u5b9a\u952e\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\uff0c\u53ef\u4ee5\u63d0\u53d6\u8be5\u952e\u7684\u503c\u8fdb\u884c\u6bd4\u8f83\u64cd\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u6bd4\u8f83\u5b57\u5178\u7684\u5927\u5c0f\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u5229\u7528\u5b57\u5178\u7684\u957f\u5ea6\u3001\u6bd4\u8f83\u952e\u503c\u5bf9\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u5176\u4e2d\uff0c\u901a\u8fc7\u6bd4\u8f83\u5b57 [&hellip;]","protected":false},"author":3,"featured_media":1180693,"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\/1180664"}],"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=1180664"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1180664\/revisions"}],"predecessor-version":[{"id":1180697,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1180664\/revisions\/1180697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1180693"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1180664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1180664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1180664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}