{"id":985332,"date":"2024-12-27T07:35:44","date_gmt":"2024-12-26T23:35:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/985332.html"},"modified":"2024-12-27T07:35:46","modified_gmt":"2024-12-26T23:35:46","slug":"python%e4%b8%adlist%e5%a6%82%e4%bd%95%e5%80%92%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/985332.html","title":{"rendered":"python\u4e2dlist\u5982\u4f55\u5012\u7f6e"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212533\/36dcea5b-6383-493a-9031-af7cd231fd76.webp\" alt=\"python\u4e2dlist\u5982\u4f55\u5012\u7f6e\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u5c06\u5217\u8868\u5012\u7f6e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec<strong>\u4f7f\u7528\u5207\u7247\u3001\u5185\u7f6e\u51fd\u6570reverse()\u3001reversed()\u51fd\u6570<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5207\u7247\u662f\u4e00\u79cd\u975e\u5e38\u76f4\u89c2\u4e14\u7b80\u6d01\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5207\u7247\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u5217\u8868\u53cd\u5411\u6392\u5217\uff0c\u4f8b\u5982\u4f7f\u7528<code>list[::-1]<\/code>\uff0c\u8fd9\u884c\u4ee3\u7801\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5012\u7f6e\u5217\u8868\uff0c\u800c\u4e0d\u6539\u53d8\u539f\u5217\u8868\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u548c\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5207\u7247\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5207\u7247\u662f\u4e00\u79cd\u975e\u5e38\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u64cd\u4f5c\u5217\u8868\uff0c\u5728Python\u4e2d\u53ef\u4ee5\u901a\u8fc7\u5207\u7247\u8f7b\u677e\u5730\u5c06\u5217\u8868\u5012\u7f6e\u3002\u5207\u7247\u7684\u8bed\u6cd5\u4e3a<code>list[start:stop:step]<\/code>\uff0c\u5176\u4e2d<code>step<\/code>\u4e3a\u8d1f\u6570\u65f6\uff0c\u53ef\u4ee5\u5b9e\u73b0\u53cd\u5411\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5]<\/p>\n<p>reversed_list = original_list[::-1]<\/p>\n<p>print(reversed_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u6b64\u65b9\u6cd5\u7b80\u6d01\u660e\u4e86\uff0c\u5e76\u4e14\u4e0d\u4f1a\u4fee\u6539\u539f\u5217\u8868\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u53ef\u80fd\u4f1a\u6d88\u8017\u989d\u5916\u7684\u5185\u5b58\u3002<\/p>\n<\/p>\n<p><p>\u5207\u7247\u64cd\u4f5c\u5728Python\u4e2d\u4e0d\u4ec5\u7528\u4e8e\u5012\u7f6e\u5217\u8868\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u622a\u53d6\u5217\u8868\u7684\u90e8\u5206\u5185\u5bb9\uff0c\u4ece\u800c\u5b9e\u73b0\u591a\u79cd\u6570\u636e\u5904\u7406\u9700\u6c42\u3002\u5176\u7075\u6d3b\u6027\u548c\u7b80\u6d01\u6027\u4f7f\u5f97\u5207\u7247\u64cd\u4f5c\u5728Python\u7f16\u7a0b\u4e2d\u5e7f\u53d7\u6b22\u8fce\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528reverse()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p><code>reverse()<\/code>\u662f\u5217\u8868\u5bf9\u8c61\u81ea\u5e26\u7684\u4e00\u4e2a\u65b9\u6cd5\uff0c\u5b83\u4f1a\u76f4\u63a5\u5728\u539f\u5217\u8868\u4e0a\u8fdb\u884c\u53cd\u5411\u64cd\u4f5c\uff0c\u56e0\u6b64\u4e0d\u4f1a\u8fd4\u56de\u65b0\u7684\u5217\u8868\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5]<\/p>\n<p>original_list.reverse()<\/p>\n<p>print(original_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4e0d\u751f\u6210\u65b0\u5217\u8868\uff0c\u8282\u7701\u5185\u5b58\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u4f1a\u6539\u53d8\u539f\u5217\u8868\uff0c\u53ef\u80fd\u4e0d\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\u7684\u573a\u5408\u3002<\/p>\n<\/p>\n<p><p><code>reverse()<\/code>\u65b9\u6cd5\u662f\u4e00\u4e2a\u539f\u5730\u64cd\u4f5c\uff0c\u5bf9\u4e8e\u9700\u8981\u8282\u7701\u5185\u5b58\u7a7a\u95f4\u7684\u573a\u666f\u975e\u5e38\u9002\u5408\u3002\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u6570\u636e\u5217\u8868\u65f6\uff0c\u907f\u514d\u751f\u6210\u65b0\u7684\u5217\u8868\u53ef\u4ee5\u663e\u8457\u63d0\u9ad8\u7a0b\u5e8f\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528reversed()\u51fd\u6570<\/p>\n<\/p>\n<p><p><code>reversed()<\/code>\u662fPython\u5185\u7f6e\u51fd\u6570\uff0c\u5b83\u8fd4\u56de\u4e00\u4e2a\u53cd\u5411\u8fed\u4ee3\u5668\u3002\u867d\u7136<code>reversed()<\/code>\u4e0d\u4f1a\u76f4\u63a5\u8fd4\u56de\u4e00\u4e2a\u5217\u8868\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7<code>list()<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5]<\/p>\n<p>reversed_iterator = reversed(original_list)<\/p>\n<p>reversed_list = list(reversed_iterator)<\/p>\n<p>print(reversed_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u4e0d\u6539\u53d8\u539f\u5217\u8868\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e0e\u5176\u4ed6\u8fed\u4ee3\u5de5\u5177\u7ed3\u5408\u4f7f\u7528\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u989d\u5916\u6b65\u9aa4\u6765\u8f6c\u6362\u4e3a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><p><code>reversed()<\/code>\u51fd\u6570\u975e\u5e38\u9002\u5408\u9700\u8981\u5728\u8fed\u4ee3\u4e2d\u8fdb\u884c\u53cd\u5411\u64cd\u4f5c\u7684\u573a\u666f\u3002\u5c24\u5176\u662f\u5f53\u4f60\u53ea\u9700\u8981\u904d\u5386\u5143\u7d20\u800c\u4e0d\u9700\u8981\u5c06\u5b83\u4eec\u5b58\u50a8\u4e3a\u5217\u8868\u65f6\uff0c<code>reversed()<\/code>\u53ef\u4ee5\u63d0\u4f9b\u9ad8\u6548\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u9012\u5f52\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u662f\u4e00\u79cd\u7f16\u7a0b\u6280\u672f\uff0c\u5b83\u901a\u8fc7\u51fd\u6570\u81ea\u8eab\u7684\u8c03\u7528\u6765\u89e3\u51b3\u95ee\u9898\u3002\u867d\u7136\u5728Python\u4e2d\u4e0d\u5e38\u7528\u9012\u5f52\u6765\u53cd\u8f6c\u5217\u8868\uff0c\u4f46\u5b83\u63d0\u4f9b\u4e86\u4e00\u79cd\u4e0d\u540c\u7684\u601d\u7ef4\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def reverse_list(lst):<\/p>\n<p>    if len(lst) == 0:<\/p>\n<p>        return []<\/p>\n<p>    else:<\/p>\n<p>        return [lst[-1]] + reverse_list(lst[:-1])<\/p>\n<p>original_list = [1, 2, 3, 4, 5]<\/p>\n<p>reversed_list = reverse_list(original_list)<\/p>\n<p>print(reversed_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u9012\u5f52\u65b9\u6cd5\u53ef\u4ee5\u66f4\u597d\u5730\u7406\u89e3\u9012\u5f52\u6982\u5ff5\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u4e0d\u9002\u5408\u5927\u89c4\u6a21\u6570\u636e\u96c6\uff0c\u53ef\u80fd\u5bfc\u81f4\u6808\u6ea2\u51fa\u3002<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u65b9\u6cd5\u867d\u7136\u5728\u6548\u7387\u4e0a\u4e0d\u5982\u5176\u4ed6\u65b9\u6cd5\uff0c\u4f46\u5b83\u5728\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\u6709\u7740\u91cd\u8981\u7684\u7406\u8bba\u4ef7\u503c\u3002\u5bf9\u4e8e\u5b66\u4e60\u548c\u638c\u63e1\u9012\u5f52\u601d\u60f3\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5806\u6808\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5806\u6808\u7ed3\u6784\u6765\u53cd\u8f6c\u5217\u8868\u662f\u4e00\u79cd\u6a21\u62df\u5b9e\u9645\u6570\u636e\u7ed3\u6784\u64cd\u4f5c\u7684\u65b9\u6cd5\u3002\u5806\u6808\u9075\u5faa\u201c\u540e\u8fdb\u5148\u51fa\u201d\u539f\u5219\uff0c\u975e\u5e38\u9002\u5408\u53cd\u5411\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def reverse_with_stack(lst):<\/p>\n<p>    stack = []<\/p>\n<p>    while lst:<\/p>\n<p>        stack.append(lst.pop())<\/p>\n<p>    return stack<\/p>\n<p>original_list = [1, 2, 3, 4, 5]<\/p>\n<p>reversed_list = reverse_with_stack(original_list.copy())<\/p>\n<p>print(reversed_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u5229\u7528\u6570\u636e\u7ed3\u6784\u7684\u7279\u6027\u6765\u5b9e\u73b0\u5012\u7f6e\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u989d\u5916\u7684\u5b58\u50a8\u7a7a\u95f4\u6765\u5b58\u50a8\u5806\u6808\u3002<\/p>\n<\/p>\n<p><p>\u5806\u6808\u65b9\u6cd5\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u53ef\u4ee5\u5e2e\u52a9\u7406\u89e3\u6570\u636e\u7ed3\u6784\u7684\u8fd0\u4f5c\u673a\u5236\uff0c\u7279\u522b\u662f\u5728\u6d89\u53ca\u5230\u6808\u64cd\u4f5c\u7684\u7b97\u6cd5\u8bbe\u8ba1\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528\u53cc\u7aef\u961f\u5217\uff08deque\uff09<\/p>\n<\/p>\n<p><p>\u53cc\u7aef\u961f\u5217\uff08deque\uff09\u662fcollections\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u7c7b\uff0c\u5141\u8bb8\u5728\u4e24\u7aef\u90fd\u80fd\u8fdb\u884c\u9ad8\u6548\u7684\u63d2\u5165\u548c\u5220\u9664\u64cd\u4f5c\u3002\u5229\u7528deque\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u5b9e\u73b0\u5217\u8868\u7684\u5012\u7f6e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import deque<\/p>\n<p>def reverse_with_deque(lst):<\/p>\n<p>    dq = deque(lst)<\/p>\n<p>    dq.reverse()<\/p>\n<p>    return list(dq)<\/p>\n<p>original_list = [1, 2, 3, 4, 5]<\/p>\n<p>reversed_list = reverse_with_deque(original_list)<\/p>\n<p>print(reversed_list)  # \u8f93\u51fa: [5, 4, 3, 2, 1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f18\u70b9<\/strong>\uff1a\u9ad8\u6548\u4e14\u7075\u6d3b\uff0c\u9002\u5408\u9700\u8981\u9891\u7e41\u63d2\u5165\u548c\u5220\u9664\u7684\u573a\u666f\u3002<br \/><strong>\u7f3a\u70b9<\/strong>\uff1a\u9700\u8981\u5bfc\u5165\u989d\u5916\u7684\u5e93\u3002<\/p>\n<\/p>\n<p><p>\u53cc\u7aef\u961f\u5217\u5728\u67d0\u4e9b\u9700\u8981\u9ad8\u6027\u80fd\u63d2\u5165\u548c\u5220\u9664\u7684\u573a\u5408\u8868\u73b0\u4f18\u5f02\uff0c\u9002\u7528\u4e8e\u5b9e\u73b0\u590d\u6742\u7684\u6570\u636e\u5904\u7406\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5012\u7f6e\u5217\u8868\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5404\u6709\u4f18\u7f3a\u70b9\u3002\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u6700\u4e3a\u7b80\u6d01\uff0c\u9002\u5408\u5927\u591a\u6570\u573a\u5408\uff1b\u800c<code>reverse()<\/code>\u65b9\u6cd5\u9002\u5408\u4e0d\u9700\u8981\u4fdd\u7559\u539f\u5217\u8868\u7684\u60c5\u51b5\uff1b<code>reversed()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u8fed\u4ee3\u89e3\u51b3\u65b9\u6848\uff1b\u9012\u5f52\u65b9\u6cd5\u867d\u7136\u4e0d\u5e38\u7528\uff0c\u4f46\u6709\u52a9\u4e8e\u7406\u89e3\u9012\u5f52\u6982\u5ff5\uff1b\u5806\u6808\u548c\u53cc\u7aef\u961f\u5217\u65b9\u6cd5\u901a\u8fc7\u6a21\u62df\u6570\u636e\u7ed3\u6784\u64cd\u4f5c\u63d0\u4f9b\u4e86\u4e0d\u540c\u7684\u5b9e\u73b0\u65b9\u5f0f\u3002\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u63d0\u9ad8\u4ee3\u7801\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u5012\u7f6e\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5207\u7247\u64cd\u4f5c\u8f7b\u677e\u5730\u5012\u7f6e\u4e00\u4e2a\u5217\u8868\u3002\u4f7f\u7528<code>list[::-1]<\/code>\u53ef\u4ee5\u751f\u6210\u4e00\u4e2a\u5012\u7f6e\u7684\u65b0\u5217\u8868\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5217\u8868<code>my_list = [1, 2, 3, 4, 5]<\/code>\uff0c\u90a3\u4e48<code>my_list[::-1]<\/code>\u5c06\u8fd4\u56de<code>[5, 4, 3, 2, 1]<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u4e14\u76f4\u89c2\uff0c\u975e\u5e38\u9002\u5408\u5feb\u901f\u5012\u7f6e\u5217\u8868\u3002<\/p>\n<p><strong>\u4f7f\u7528reverse()\u65b9\u6cd5\u5012\u7f6e\u5217\u8868\u7684\u4f18\u52bf\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528<code>list.reverse()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5728\u539f\u5730\u5012\u7f6e\u5217\u8868\uff0c\u8fd9\u610f\u5473\u7740\u4e0d\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u800c\u662f\u76f4\u63a5\u4fee\u6539\u539f\u59cb\u5217\u8868\u3002\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u5408\u9700\u8981\u8282\u7701\u5185\u5b58\u7684\u573a\u666f\u3002\u4f8b\u5982\uff0c\u8c03\u7528<code>my_list.reverse()<\/code>\u540e\uff0c<code>my_list<\/code>\u5c06\u4f1a\u76f4\u63a5\u53d8\u4e3a\u5012\u7f6e\u72b6\u6001\u3002\u8fd9\u5bf9\u4e8e\u5927\u578b\u5217\u8868\u6765\u8bf4\uff0c\u53ef\u4ee5\u6709\u6548\u51cf\u5c11\u5185\u5b58\u7684\u4f7f\u7528\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u5176\u4ed6\u65b9\u6cd5\u5012\u7f6e\u5217\u8868\uff1f<\/strong><br \/>\u9664\u4e86\u5207\u7247\u548c<code>reverse()<\/code>\u65b9\u6cd5\uff0cPython\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u65b9\u5f0f\u6765\u5012\u7f6e\u5217\u8868\u3002\u53ef\u4ee5\u5229\u7528<code>for<\/code>\u5faa\u73af\u7ed3\u5408<code>append()<\/code>\u65b9\u6cd5\u624b\u52a8\u6784\u5efa\u4e00\u4e2a\u5012\u7f6e\u7684\u5217\u8868\u3002\u6216\u8005\u4f7f\u7528<code>sorted()<\/code>\u51fd\u6570\u7ed3\u5408<code>reverse=True<\/code>\u53c2\u6570\uff0c\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u6392\u5e8f\uff0c\u4f46\u4e5f\u53ef\u4ee5\u5b9e\u73b0\u5012\u7f6e\u529f\u80fd\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u573a\u666f\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5c06\u5217\u8868\u5012\u7f6e\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5185\u7f6e\u51fd\u6570reverse()\u3001reversed()\u51fd [&hellip;]","protected":false},"author":3,"featured_media":985338,"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\/985332"}],"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=985332"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/985332\/revisions"}],"predecessor-version":[{"id":985341,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/985332\/revisions\/985341"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/985338"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=985332"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=985332"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=985332"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}