{"id":997861,"date":"2024-12-27T09:27:45","date_gmt":"2024-12-27T01:27:45","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/997861.html"},"modified":"2024-12-27T09:27:48","modified_gmt":"2024-12-27T01:27:48","slug":"python%e9%9b%86%e5%90%88%e5%a6%82%e4%bd%95%e5%8e%bb%e9%87%8d%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/997861.html","title":{"rendered":"python\u96c6\u5408\u5982\u4f55\u53bb\u91cd\u590d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073516\/1c2a402a-619e-4f4c-868b-3d5f13406cc6.webp\" alt=\"python\u96c6\u5408\u5982\u4f55\u53bb\u91cd\u590d\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53bb\u9664\u96c6\u5408\u4e2d\u7684\u91cd\u590d\u5143\u7d20\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u96c6\u5408\u7684\u7279\u6027\u6765\u5b9e\u73b0\u3001\u5229\u7528<code>set<\/code>\u6570\u636e\u7ed3\u6784\u3001\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\u3002<\/strong> \u96c6\u5408\uff08<code>set<\/code>\uff09\u662fPython\u4e2d\u7684\u4e00\u79cd\u5185\u7f6e\u6570\u636e\u7ed3\u6784\uff0c\u5b83\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u65e0\u5e8f\u4e14\u4e0d\u91cd\u590d\u7684\u5143\u7d20\u96c6\u3002\u56e0\u6b64\uff0c\u5f53\u4f60\u5c06\u4e00\u4e2a\u5305\u542b\u91cd\u590d\u5143\u7d20\u7684\u5217\u8868\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u8f6c\u6362\u4e3a\u96c6\u5408\u65f6\uff0c\u91cd\u590d\u7684\u5143\u7d20\u5c06\u81ea\u52a8\u88ab\u53bb\u9664\u3002\u4e0b\u9762\u662f\u66f4\u8be6\u7ec6\u7684\u89e3\u91ca\u548c\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u96c6\u5408\u7684\u7279\u6027\u4e0e\u53bb\u91cd<\/h3>\n<\/p>\n<p><p>\u96c6\u5408\u662fPython\u4e2d\u7684\u4e00\u79cd\u65e0\u5e8f\u3001\u4e0d\u53ef\u91cd\u590d\u7684\u6570\u636e\u7ed3\u6784\u3002\u8fd9\u610f\u5473\u7740\u5f53\u4f60\u5c06\u4e00\u4e2a\u5217\u8868\u6216\u5176\u4ed6\u53ef\u8fed\u4ee3\u5bf9\u8c61\u8f6c\u6362\u4e3a\u96c6\u5408\u65f6\uff0c\u4efb\u4f55\u91cd\u590d\u5143\u7d20\u90fd\u4f1a\u81ea\u52a8\u88ab\u79fb\u9664\u3002\u8fd9\u662f\u56e0\u4e3a\u96c6\u5408\u7684\u5e95\u5c42\u5b9e\u73b0\u786e\u4fdd\u4e86\u5176\u4e2d\u7684\u5143\u7d20\u662f\u552f\u4e00\u7684\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\uff1a<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>list_with_duplicates = [1, 2, 2, 3, 4, 4, 5]<\/p>\n<p>unique_set = set(list_with_duplicates)<\/p>\n<p>print(unique_set)  # \u8f93\u51fa: {1, 2, 3, 4, 5}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u521b\u5efa\u4e86\u4e00\u4e2a\u5305\u542b\u91cd\u590d\u5143\u7d20\u7684\u5217\u8868\u3002\u7136\u540e\uff0c\u6211\u4eec\u5c06\u5176\u8f6c\u6362\u4e3a\u4e00\u4e2a\u96c6\u5408\uff0c\u91cd\u590d\u7684\u5143\u7d20\u88ab\u81ea\u52a8\u79fb\u9664\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5229\u7528<code>set<\/code>\u6570\u636e\u7ed3\u6784\u53bb\u91cd<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c<code>set<\/code>\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u6570\u636e\u53bb\u91cd\u548c\u5904\u7406\u3002\u5b83\u53ef\u4ee5\u5728O(1)\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u5185\u5b8c\u6210\u67e5\u627e\u64cd\u4f5c\uff0c\u8fd9\u4f7f\u5f97\u5b83\u5728\u9700\u8981\u5feb\u901f\u67e5\u627e\u552f\u4e00\u5143\u7d20\u7684\u573a\u666f\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h4>\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408<\/h4>\n<\/p>\n<p><p>\u4e00\u4e2a\u5e38\u89c1\u7684\u7528\u6cd5\u662f\u5c06\u4e00\u4e2a\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\uff0c\u4ee5\u53bb\u9664\u5176\u4e2d\u7684\u91cd\u590d\u5143\u7d20\u3002\u8fd9\u4e2a\u64cd\u4f5c\u975e\u5e38\u7b80\u5355\uff0c\u5e76\u4e14Python\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684<code>set()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>def remove_duplicates(input_list):<\/p>\n<p>    return list(set(input_list))<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 4, 5, 5, 6]<\/p>\n<p>print(remove_duplicates(my_list))  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5728\u96c6\u5408\u4e2d\u8fdb\u884c\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5728\u53bb\u9664\u91cd\u590d\u9879\u4e4b\u540e\uff0c\u96c6\u5408\u8fd8\u63d0\u4f9b\u4e86\u8bb8\u591a\u5176\u4ed6\u6709\u7528\u7684\u64cd\u4f5c\uff0c\u6bd4\u5982\u5e76\u96c6\u3001\u4ea4\u96c6\u3001\u5dee\u96c6\u7b49\u3002\u4f7f\u7528\u8fd9\u4e9b\u64cd\u4f5c\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u5904\u7406\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h4>\u5e76\u96c6<\/h4>\n<\/p>\n<p><p>\u5e76\u96c6\u64cd\u4f5c\u53ef\u4ee5\u5c06\u4e24\u4e2a\u96c6\u5408\u4e2d\u7684\u6240\u6709\u5143\u7d20\u5408\u5e76\u5728\u4e00\u8d77\uff0c\u5e76\u4e14\u81ea\u52a8\u53bb\u9664\u91cd\u590d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>set1 = {1, 2, 3}<\/p>\n<p>set2 = {3, 4, 5}<\/p>\n<p>union_set = set1.union(set2)<\/p>\n<p>print(union_set)  # \u8f93\u51fa: {1, 2, 3, 4, 5}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4ea4\u96c6<\/h4>\n<\/p>\n<p><p>\u4ea4\u96c6\u64cd\u4f5c\u8fd4\u56de\u4e24\u4e2a\u96c6\u5408\u4e2d\u90fd\u5b58\u5728\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>intersection_set = set1.intersection(set2)<\/p>\n<p>print(intersection_set)  # \u8f93\u51fa: {3}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5dee\u96c6<\/h4>\n<\/p>\n<p><p>\u5dee\u96c6\u64cd\u4f5c\u8fd4\u56de\u5728\u7b2c\u4e00\u4e2a\u96c6\u5408\u4e2d\u4f46\u4e0d\u5728\u7b2c\u4e8c\u4e2a\u96c6\u5408\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>difference_set = set1.difference(set2)<\/p>\n<p>print(difference_set)  # \u8f93\u51fa: {1, 2}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5229\u7528<code>fromkeys<\/code>\u65b9\u6cd5\u53bb\u91cd<\/h3>\n<\/p>\n<p><p>Python\u5b57\u5178\u7684<code>fromkeys<\/code>\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u7528\u4e8e\u53bb\u91cd\u3002\u867d\u7136\u5b83\u4e0d\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u4ee5\u63d0\u4f9b\u4e00\u79cd\u7b80\u5355\u7684\u53bb\u91cd\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>my_list = [1, 2, 3, 4, 4, 5, 5, 6]<\/p>\n<p>unique_list = list(dict.fromkeys(my_list))<\/p>\n<p>print(unique_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>fromkeys<\/code>\u65b9\u6cd5\u521b\u5efa\u4e86\u4e00\u4e2a\u5b57\u5178\uff0c\u5176\u4e2d\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u6210\u4e3a\u5b57\u5178\u7684\u952e\u3002\u7531\u4e8e\u5b57\u5178\u952e\u7684\u552f\u4e00\u6027\uff0c\u91cd\u590d\u7684\u5143\u7d20\u81ea\u52a8\u88ab\u53bb\u9664\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528<code>collections.OrderedDict<\/code>\u4fdd\u6301\u987a\u5e8f\u53bb\u91cd<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u60f3\u53bb\u9664\u91cd\u590d\u9879\uff0c\u540c\u65f6\u4fdd\u7559\u539f\u6709\u7684\u987a\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>collections<\/code>\u6a21\u5757\u4e2d\u7684<code>OrderedDict<\/code>\u3002\u8fd9\u5728Python 3.7\u53ca\u66f4\u9ad8\u7248\u672c\u4e2d\u5df2\u88ab\u9ed8\u8ba4\u652f\u6301\uff0c\u56e0\u4e3a\u4ecePython 3.7\u5f00\u59cb\uff0c\u5b57\u5178\u672c\u8eab\u5c31\u4fdd\u6301\u63d2\u5165\u987a\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>from collections import OrderedDict<\/p>\n<p>my_list = [1, 2, 3, 4, 4, 5, 5, 6]<\/p>\n<p>unique_list = list(OrderedDict.fromkeys(my_list))<\/p>\n<p>print(unique_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u624b\u52a8\u53bb\u91cd<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u624b\u52a8\u53bb\u91cd\uff0c\u7279\u522b\u662f\u5f53\u4f60\u9700\u8981\u5bf9\u53bb\u91cd\u8fc7\u7a0b\u8fdb\u884c\u66f4\u7cbe\u7ec6\u7684\u63a7\u5236\u65f6\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u624b\u52a8\u53bb\u91cd\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>def manual_remove_duplicates(input_list):<\/p>\n<p>    seen = set()<\/p>\n<p>    unique_list = []<\/p>\n<p>    for item in input_list:<\/p>\n<p>        if item not in seen:<\/p>\n<p>            unique_list.append(item)<\/p>\n<p>            seen.add(item)<\/p>\n<p>    return unique_list<\/p>\n<h2><strong>\u4f7f\u7528\u793a\u4f8b<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 4, 5, 5, 6]<\/p>\n<p>print(manual_remove_duplicates(my_list))  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a\u8f85\u52a9\u7684<code>seen<\/code>\u96c6\u5408\u6765\u8ddf\u8e2a\u5df2\u7ecf\u9047\u5230\u7684\u5143\u7d20\uff0c\u5e76\u5728\u6784\u5efa<code>unique_list<\/code>\u65f6\u68c0\u67e5\u6bcf\u4e2a\u5143\u7d20\u662f\u5426\u5df2\u5b58\u5728\u4e8e<code>seen<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53bb\u9664\u91cd\u590d\u9879\u7684\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u65e0\u8bba\u662f\u4f7f\u7528\u96c6\u5408\u7684\u7279\u6027\uff0c\u8fd8\u662f\u901a\u8fc7\u5b57\u5178\u6216\u8005\u624b\u52a8\u5b9e\u73b0\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\u3002\u901a\u8fc7\u7406\u89e3\u548c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u53bb\u91cd\u65b9\u6848\u3002<strong>Python\u4e2d\u7684\u96c6\u5408\u53ca\u5176\u76f8\u5173\u64cd\u4f5c\u63d0\u4f9b\u4e86\u5f3a\u5927\u4e14\u9ad8\u6548\u7684\u5de5\u5177\u6765\u5904\u7406\u91cd\u590d\u6570\u636e\uff0c\u4f7f\u5f97\u6570\u636e\u5904\u7406\u53d8\u5f97\u66f4\u52a0\u7b80\u6d01\u548c\u9ad8\u6548\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u96c6\u5408\u6765\u53bb\u9664\u5217\u8868\u4e2d\u7684\u91cd\u590d\u5143\u7d20\uff1f<\/strong><br \/>\u4f7f\u7528Python\u7684\u96c6\u5408\uff08set\uff09\u6570\u636e\u7ed3\u6784\u53ef\u4ee5\u8f7b\u677e\u53bb\u9664\u5217\u8868\u4e2d\u7684\u91cd\u590d\u5143\u7d20\u3002\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\u4f1a\u81ea\u52a8\u5220\u9664\u91cd\u590d\u9879\uff0c\u56e0\u4e3a\u96c6\u5408\u4e0d\u5141\u8bb8\u91cd\u590d\u503c\u3002\u53ef\u4ee5\u901a\u8fc7<code>set()<\/code>\u51fd\u6570\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u4f8b\u5982\uff1a<code>unique_items = set(your_list)<\/code>\u3002\u5982\u679c\u9700\u8981\u4fdd\u7559\u539f\u59cb\u5217\u8868\u7684\u987a\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408\u96c6\u5408\u6765\u5b9e\u73b0\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u6709\u54ea\u4e9b\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u53bb\u91cd\uff1f<\/strong><br \/>\u9664\u4e86\u96c6\u5408\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u53bb\u91cd\u7684\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u5178\u7684\u952e\u6765\u53bb\u91cd\uff0c\u56e0\u4e3a\u5b57\u5178\u4e2d\u7684\u952e\u662f\u552f\u4e00\u7684\u3002\u5728Python 3.7\u53ca\u4ee5\u4e0a\u7248\u672c\uff0c\u5b57\u5178\u4fdd\u6301\u63d2\u5165\u987a\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>your_dict = {item: None for item in your_list}<\/code>\u6765\u53bb\u91cd\u3002\u540c\u65f6\uff0c\u4f7f\u7528<code>pandas<\/code>\u5e93\u7684<code>drop_duplicates()<\/code>\u65b9\u6cd5\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u9009\u62e9\uff0c\u9002\u5408\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u3002<\/p>\n<p><strong>\u53bb\u91cd\u540e\uff0c\u5982\u4f55\u5c06\u7ed3\u679c\u8f6c\u6362\u56de\u5217\u8868\uff1f<\/strong><br \/>\u5728\u4f7f\u7528\u96c6\u5408\u53bb\u91cd\u540e\uff0c\u5982\u679c\u9700\u8981\u5c06\u7ed3\u679c\u8f6c\u6362\u56de\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>list()<\/code>\u51fd\u6570\u3002\u6bd4\u5982\uff1a<code>unique_list = list(unique_items)<\/code>\u3002\u8fd9\u6837\u5c31\u80fd\u5c06\u53bb\u91cd\u540e\u7684\u96c6\u5408\u518d\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u4ee5\u4fbf\u4e8e\u540e\u7eed\u7684\u5904\u7406\u548c\u64cd\u4f5c\u3002\u540c\u65f6\uff0c\u4f7f\u7528\u96c6\u5408\u53bb\u91cd\u65f6\uff0c\u539f\u59cb\u6570\u636e\u7684\u987a\u5e8f\u53ef\u80fd\u4f1a\u4e22\u5931\uff0c\u56e0\u6b64\u5728\u9700\u8981\u4fdd\u6301\u987a\u5e8f\u7684\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53bb\u9664\u96c6\u5408\u4e2d\u7684\u91cd\u590d\u5143\u7d20\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u96c6\u5408\u7684\u7279\u6027\u6765\u5b9e\u73b0\u3001\u5229\u7528set\u6570\u636e\u7ed3\u6784\u3001\u5c06\u5217\u8868\u8f6c\u6362\u4e3a\u96c6\u5408\u3002 \u96c6 [&hellip;]","protected":false},"author":3,"featured_media":997868,"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\/997861"}],"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=997861"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997861\/revisions"}],"predecessor-version":[{"id":997873,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997861\/revisions\/997873"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/997868"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=997861"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=997861"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=997861"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}