{"id":1070386,"date":"2025-01-08T10:57:40","date_gmt":"2025-01-08T02:57:40","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1070386.html"},"modified":"2025-01-08T10:57:43","modified_gmt":"2025-01-08T02:57:43","slug":"python%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad%e4%b8%a4%e4%b8%aa%e5%ae%b9%e5%99%a8%e7%9b%b8%e5%90%8c-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1070386.html","title":{"rendered":"python\u5982\u4f55\u5224\u65ad\u4e24\u4e2a\u5bb9\u5668\u76f8\u540c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101129\/958cdc62-ac7e-44af-9975-5ff11aaf1692.webp\" alt=\"python\u5982\u4f55\u5224\u65ad\u4e24\u4e2a\u5bb9\u5668\u76f8\u540c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5224\u65ad\u4e24\u4e2a\u5bb9\u5668\u662f\u5426\u76f8\u540c\uff0c\u53ef\u4ee5\u4f7f\u7528==\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u3001\u4f7f\u7528\u5b57\u5178\uff08dict\uff09\u6765\u6bd4\u8f83\u3002<\/strong>\u5176\u4e2d\u4f7f\u7528==\u8fd0\u7b97\u7b26\u662f\u6700\u5e38\u89c1\u4e14\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u8fd9\u4e00\u65b9\u6cd5\uff0c\u5e76\u4ecb\u7ecd\u5176\u4ed6\u65b9\u6cd5\u7684\u4f7f\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p><strong>==\u8fd0\u7b97\u7b26\u7684\u4f7f\u7528<\/strong><\/p>\n<\/p>\n<p><p>==\u8fd0\u7b97\u7b26\u662fPython\u4e2d\u7528\u4e8e\u6bd4\u8f83\u4e24\u4e2a\u5bf9\u8c61\u662f\u5426\u76f8\u7b49\u7684\u8fd0\u7b97\u7b26\u3002\u5f53\u4f7f\u7528==\u8fd0\u7b97\u7b26\u65f6\uff0cPython\u4f1a\u81ea\u52a8\u6bd4\u8f83\u4e24\u4e2a\u5bb9\u5668\u4e2d\u7684\u5143\u7d20\u662f\u5426\u76f8\u540c\u3002\u5982\u679c\u4e24\u4e2a\u5bb9\u5668\u4e2d\u7684\u5143\u7d20\u5b8c\u5168\u4e00\u81f4\uff0c\u90a3\u4e48==\u8fd0\u7b97\u7b26\u4f1a\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56deFalse\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001==\u8fd0\u7b97\u7b26\u7684\u4f7f\u7528\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>==\u8fd0\u7b97\u7b26\u9002\u7528\u4e8e\u6bd4\u8f83\u6240\u6709\u7c7b\u578b\u7684\u5bb9\u5668\uff0c\u5305\u62ec\u5217\u8868\uff08list\uff09\u3001\u5143\u7ec4\uff08tuple\uff09\u3001\u96c6\u5408\uff08set\uff09\u548c\u5b57\u5178\uff08dict\uff09\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5217\u8868\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3, 4]<\/p>\n<p>list2 = [1, 2, 3, 4]<\/p>\n<p>list3 = [4, 3, 2, 1]<\/p>\n<p>print(list1 == list2)  # \u8f93\u51fa: True<\/p>\n<p>print(list1 == list3)  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5143\u7ec4\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">tuple1 = (1, 2, 3, 4)<\/p>\n<p>tuple2 = (1, 2, 3, 4)<\/p>\n<p>tuple3 = (4, 3, 2, 1)<\/p>\n<p>print(tuple1 == tuple2)  # \u8f93\u51fa: True<\/p>\n<p>print(tuple1 == tuple3)  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3\u3001\u96c6\u5408\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">set1 = {1, 2, 3, 4}<\/p>\n<p>set2 = {1, 2, 3, 4}<\/p>\n<p>set3 = {4, 3, 2, 1}<\/p>\n<p>print(set1 == set2)  # \u8f93\u51fa: True<\/p>\n<p>print(set1 == set3)  # \u8f93\u51fa: True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4\u3001\u5b57\u5178\u7684\u6bd4\u8f83<\/h4>\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, &#39;c&#39;: 3}<\/p>\n<p>dict3 = {&#39;a&#39;: 3, &#39;b&#39;: 2, &#39;c&#39;: 1}<\/p>\n<p>print(dict1 == dict2)  # \u8f93\u51fa: True<\/p>\n<p>print(dict1 == dict3)  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u65e0\u5e8f\u7684\u5bb9\u5668\uff08\u5982\u5217\u8868\uff09\uff0c\u53ef\u4ee5\u5c06\u5176\u8f6c\u6362\u4e3a\u96c6\u5408\uff08set\uff09\u8fdb\u884c\u6bd4\u8f83\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u53ea\u5173\u5fc3\u5143\u7d20\u503c\u800c\u4e0d\u5173\u5fc3\u987a\u5e8f\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\u6bd4\u8f83<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3, 4]<\/p>\n<p>list2 = [4, 3, 2, 1]<\/p>\n<p>set1 = set(list1)<\/p>\n<p>set2 = set(list2)<\/p>\n<p>print(set1 == set2)  # \u8f93\u51fa: True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5143\u7ec4\u8f6c\u6362\u4e3a\u96c6\u5408\u6bd4\u8f83<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">tuple1 = (1, 2, 3, 4)<\/p>\n<p>tuple2 = (4, 3, 2, 1)<\/p>\n<p>set1 = set(tuple1)<\/p>\n<p>set2 = set(tuple2)<\/p>\n<p>print(set1 == set2)  # \u8f93\u51fa: True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5b57\u5178\uff08dict\uff09\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5d4c\u5957\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u4f8b\u5982\u5305\u542b\u5b57\u5178\u7684\u5217\u8868\uff0c\u53ef\u4ee5\u7f16\u5199\u9012\u5f52\u51fd\u6570\u6765\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u9012\u5f52\u6bd4\u8f83\u5b57\u5178<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">def are_dicts_equal(dict1, dict2):<\/p>\n<p>    if dict1.keys() != dict2.keys():<\/p>\n<p>        return False<\/p>\n<p>    for key in dict1:<\/p>\n<p>        if isinstance(dict1[key], dict) and isinstance(dict2[key], dict):<\/p>\n<p>            if not are_dicts_equal(dict1[key], dict2[key]):<\/p>\n<p>                return False<\/p>\n<p>        elif dict1[key] != dict2[key]:<\/p>\n<p>            return False<\/p>\n<p>    return True<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;c&#39;: 3}}<\/p>\n<p>dict2 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;c&#39;: 3}}<\/p>\n<p>dict3 = {&#39;a&#39;: 1, &#39;b&#39;: {&#39;c&#39;: 4}}<\/p>\n<p>print(are_dicts_equal(dict1, dict2))  # \u8f93\u51fa: True<\/p>\n<p>print(are_dicts_equal(dict1, dict3))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u6bd4\u8f83\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u66f4\u52a0\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u5b9a\u4e49\u81ea\u5b9a\u4e49\u6bd4\u8f83\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u6bd4\u8f83\u5305\u542b\u5217\u8868\u3001\u5143\u7ec4\u548c\u5b57\u5178\u7684\u590d\u6742\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def compare_cont<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ners(container1, container2):<\/p>\n<p>    if type(container1) != type(container2):<\/p>\n<p>        return False<\/p>\n<p>    if isinstance(container1, (list, tuple)):<\/p>\n<p>        return len(container1) == len(container2) and all(<\/p>\n<p>            compare_containers(a, b) for a, b in zip(container1, container2))<\/p>\n<p>    if isinstance(container1, dict):<\/p>\n<p>        return are_dicts_equal(container1, container2)<\/p>\n<p>    return container1 == container2<\/p>\n<p>container1 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 3}]}<\/p>\n<p>container2 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 3}]}<\/p>\n<p>container3 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 4}]}<\/p>\n<p>print(compare_containers(container1, container2))  # \u8f93\u51fa: True<\/p>\n<p>print(compare_containers(container1, container3))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u4f7f\u7528Python\u5185\u7f6e\u7684\u65b9\u6cd5\u53ef\u80fd\u4e0d\u591f\u76f4\u89c2\u6216\u4e0d\u591f\u5f3a\u5927\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u4f8b\u5982<code>deepdiff<\/code>\u3002<code>deepdiff<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u65b9\u6cd5\u6765\u6bd4\u8f83\u4e24\u4e2a\u590d\u6742\u7684Python\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from deepdiff import DeepDiff<\/p>\n<p>container1 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 3}]}<\/p>\n<p>container2 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 3}]}<\/p>\n<p>container3 = {&#39;a&#39;: [1, 2, {&#39;b&#39;: 4}]}<\/p>\n<p>print(DeepDiff(container1, container2))  # \u8f93\u51fa: {}<\/p>\n<p>print(DeepDiff(container1, container3))  # \u8f93\u51fa: {&#39;values_changed&#39;: {&#39;root[&#39;a&#39;][2][&#39;b&#39;]&#39;: {&#39;new_value&#39;: 4, &#39;old_value&#39;: 3}}}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u6027\u80fd\u8003\u8651<\/h3>\n<\/p>\n<p><p>\u5f53\u6bd4\u8f83\u975e\u5e38\u5927\u7684\u5bb9\u5668\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u9009\u62e9\u6700\u5408\u9002\u7684\u6bd4\u8f83\u65b9\u6cd5\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6027\u80fd\u4f18\u5316\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u63d0\u524d\u7ec8\u6b62\u6bd4\u8f83<\/h4>\n<\/p>\n<p><p>\u5728\u6bd4\u8f83\u65f6\uff0c\u5c3d\u91cf\u5728\u53d1\u73b0\u7b2c\u4e00\u4e2a\u4e0d\u5339\u914d\u5143\u7d20\u65f6\u5c31\u7ec8\u6b62\u6bd4\u8f83\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def optimized_compare(container1, container2):<\/p>\n<p>    if len(container1) != len(container2):<\/p>\n<p>        return False<\/p>\n<p>    for a, b in zip(container1, container2):<\/p>\n<p>        if a != b:<\/p>\n<p>            return False<\/p>\n<p>    return True<\/p>\n<p>list1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<p>list2 = [1, 2, 3, 4, 0, 6, 7, 8, 9]<\/p>\n<p>print(optimized_compare(list1, list2))  # \u8f93\u51fa: False<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u4f7f\u7528\u751f\u6210\u5668<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u975e\u5e38\u5927\u7684\u5bb9\u5668\uff0c\u8003\u8651\u4f7f\u7528\u751f\u6210\u5668\u6765\u51cf\u5c11\u5185\u5b58\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def compare_with_generators(container1, container2):<\/p>\n<p>    return all(a == b for a, b in zip(container1, container2))<\/p>\n<p>list1 = (i for i in range(1000000))<\/p>\n<p>list2 = (i for i in range(1000000))<\/p>\n<p>print(compare_with_generators(list1, list2))  # \u8f93\u51fa: True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5224\u65ad\u4e24\u4e2a\u5bb9\u5668\u662f\u5426\u76f8\u540c\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\u3002<strong>==\u8fd0\u7b97\u7b26<\/strong>\u662f\u6700\u7b80\u5355\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u5bf9\u4e8e\u65e0\u5e8f\u5bb9\u5668\uff0c\u53ef\u4ee5\u4f7f\u7528<strong>\u96c6\u5408<\/strong>\u6765\u6bd4\u8f83\u3002\u5bf9\u4e8e\u5d4c\u5957\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u53ef\u4ee5\u7f16\u5199<strong>\u9012\u5f52\u51fd\u6570<\/strong>\u6216\u4f7f\u7528<strong>\u7b2c\u4e09\u65b9\u5e93<\/strong>\uff08\u5982deepdiff\uff09\u3002\u5728\u5904\u7406\u975e\u5e38\u5927\u7684\u5bb9\u5668\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\uff0c\u53ef\u4ee5\u901a\u8fc7\u63d0\u524d\u7ec8\u6b62\u6bd4\u8f83\u548c\u4f7f\u7528\u751f\u6210\u5668\u6765\u63d0\u9ad8\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6bd4\u8f83\u4e24\u4e2a\u5217\u8868\u662f\u5426\u76f8\u540c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd0\u7b97\u7b26<code>==<\/code>\u6765\u6bd4\u8f83\u4e24\u4e2a\u5217\u8868\u3002\u5982\u679c\u4e24\u4e2a\u5217\u8868\u5305\u542b\u76f8\u540c\u7684\u5143\u7d20\u4e14\u987a\u5e8f\u76f8\u540c\uff0c\u5219\u5b83\u4eec\u88ab\u8ba4\u4e3a\u662f\u76f8\u540c\u7684\u3002\u4f8b\u5982\uff0c<code>list1 == list2<\/code>\u5c06\u8fd4\u56de<code>True<\/code>\uff0c\u5982\u679c<code>list1<\/code>\u548c<code>list2<\/code>\u7684\u5185\u5bb9\u5b8c\u5168\u4e00\u81f4\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>collections.Counter<\/code>\u6765\u6bd4\u8f83\u4e24\u4e2a\u5217\u8868\u7684\u5143\u7d20\u53ca\u5176\u6570\u91cf\uff0c\u800c\u4e0d\u8003\u8651\u987a\u5e8f\u3002<\/p>\n<p><strong>\u5224\u65ad\u5b57\u5178\u662f\u5426\u76f8\u540c\u7684\u6700\u4f73\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5b57\u5178\u7684\u6bd4\u8f83\u4e5f\u53ef\u4ee5\u4f7f\u7528<code>==<\/code>\u8fd0\u7b97\u7b26\u3002\u4e24\u4e2a\u5b57\u5178\u53ea\u6709\u5728\u5b83\u4eec\u5305\u542b\u76f8\u540c\u7684\u952e\u503c\u5bf9\u65f6\u624d\u4f1a\u88ab\u8ba4\u4e3a\u76f8\u540c\u3002\u5982\u679c\u987a\u5e8f\u4e0d\u540c\u4f46\u952e\u503c\u5bf9\u76f8\u540c\uff0c<code>==<\/code>\u8fd0\u7b97\u7b26\u4f9d\u7136\u4f1a\u8fd4\u56de<code>True<\/code>\u3002\u4f8b\u5982\uff0c<code>dict1 == dict2<\/code>\u5728\u952e\u503c\u5bf9\u5b8c\u5168\u76f8\u540c\u7684\u60c5\u51b5\u4e0b\u8fd4\u56de<code>True<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u6bd4\u8f83\u4e24\u4e2a\u96c6\u5408\u7684\u5185\u5bb9\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528\u96c6\u5408\u7684<code>==<\/code>\u8fd0\u7b97\u7b26\u6765\u5224\u65ad\u4e24\u4e2a\u96c6\u5408\u662f\u5426\u76f8\u540c\u3002\u96c6\u5408\u4e0d\u8003\u8651\u5143\u7d20\u7684\u987a\u5e8f\u548c\u91cd\u590d\u6027\uff0c\u56e0\u6b64\u53ea\u8981\u4e24\u4e2a\u96c6\u5408\u5305\u542b\u76f8\u540c\u7684\u5143\u7d20\uff0c\u5b83\u4eec\u5c31\u88ab\u8ba4\u4e3a\u662f\u76f8\u540c\u7684\u3002\u6bd4\u5982\uff0c<code>set1 == set2<\/code>\u4f1a\u8fd4\u56de<code>True<\/code>\uff0c\u53ea\u8981<code>set1<\/code>\u548c<code>set2<\/code>\u7684\u5143\u7d20\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5224\u65ad\u4e24\u4e2a\u5bb9\u5668\u662f\u5426\u76f8\u540c\uff0c\u53ef\u4ee5\u4f7f\u7528==\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528\u96c6\u5408\uff08set\uff09\u3001\u4f7f\u7528\u5b57\u5178\uff08dict\uff09\u6765\u6bd4\u8f83\u3002\u5176\u4e2d [&hellip;]","protected":false},"author":3,"featured_media":1070393,"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\/1070386"}],"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=1070386"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070386\/revisions"}],"predecessor-version":[{"id":1070400,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1070386\/revisions\/1070400"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1070393"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1070386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1070386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1070386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}