{"id":987859,"date":"2024-12-27T07:57:14","date_gmt":"2024-12-26T23:57:14","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/987859.html"},"modified":"2024-12-27T07:57:16","modified_gmt":"2024-12-26T23:57:16","slug":"python%e5%a6%82%e4%bd%95%e6%8f%90%e5%8f%96%e5%88%97%e8%a1%a8%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/987859.html","title":{"rendered":"python\u5982\u4f55\u63d0\u53d6\u5217\u8868\u4e2d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063800\/923ca885-b3a1-4c74-b94c-2e242a758d0b.webp\" alt=\"python\u5982\u4f55\u63d0\u53d6\u5217\u8868\u4e2d\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u63d0\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u3001\u5207\u7247\u3001\u5217\u8868\u89e3\u6790\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0<\/strong>\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u5177\u4f53\u5e94\u7528\u573a\u666f\u51b3\u5b9a\u4e86\u54ea\u79cd\u65b9\u6cd5\u66f4\u4e3a\u9002\u5408\u3002<strong>\u7d22\u5f15\u53ef\u4ee5\u63d0\u53d6\u5355\u4e2a\u5143\u7d20\u3001\u5207\u7247\u53ef\u7528\u4e8e\u63d0\u53d6\u8fde\u7eed\u7684\u591a\u4e2a\u5143\u7d20\u3001\u800c\u5217\u8868\u89e3\u6790\u5219\u53ef\u4ee5\u63d0\u53d6\u7b26\u5408\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20<\/strong>\u3002\u4e0b\u9762\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u7ed3\u5408\u5b9e\u4f8b\u8fdb\u884c\u8bf4\u660e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u7d22\u5f15\u63d0\u53d6<\/p>\n<\/p>\n<p><p>\u7d22\u5f15\u662f\u4e00\u79cd\u76f4\u63a5\u83b7\u53d6\u5217\u8868\u4e2d\u5355\u4e2a\u5143\u7d20\u7684\u65b9\u5f0f\uff0cPython\u5217\u8868\u4e2d\u7684\u5143\u7d20\u662f\u4ece0\u5f00\u59cb\u7f16\u53f7\u7684\u3002\u901a\u8fc7\u7d22\u5f15\uff0c\u6211\u4eec\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u83b7\u53d6\u5230\u4efb\u610f\u4f4d\u7f6e\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5355\u4e00\u7d22\u5f15<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5355\u4e00\u7d22\u5f15\u53ef\u4ee5\u76f4\u63a5\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u67d0\u4e2a\u5143\u7d20\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u63a5\uff0c\u7f3a\u70b9\u662f\u53ea\u80fd\u4e00\u6b21\u8bbf\u95ee\u4e00\u4e2a\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [10, 20, 30, 40, 50]<\/p>\n<p>element = my_list[2]  # \u8bbf\u95ee\u7b2c\u4e09\u4e2a\u5143\u7d20\uff0c\u7ed3\u679c\u4e3a30<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8d1f\u7d22\u5f15<\/strong><\/p>\n<\/p>\n<p><p>Python\u5141\u8bb8\u4f7f\u7528\u8d1f\u7d22\u5f15\uff0c\u8fd9\u6837\u53ef\u4ee5\u4ece\u5217\u8868\u7684\u672b\u5c3e\u5f00\u59cb\u8ba1\u6570\uff0c\u8fd9\u5bf9\u4e8e\u8bbf\u95ee\u5217\u8868\u672b\u5c3e\u7684\u5143\u7d20\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">last_element = my_list[-1]  # \u8bbf\u95ee\u6700\u540e\u4e00\u4e2a\u5143\u7d20\uff0c\u7ed3\u679c\u4e3a50<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7d22\u5f15\u8d85\u51fa\u8303\u56f4<\/strong><\/p>\n<\/p>\n<p><p>\u6ce8\u610f\u5728\u4f7f\u7528\u7d22\u5f15\u65f6\uff0c\u5982\u679c\u7d22\u5f15\u8d85\u51fa\u4e86\u5217\u8868\u7684\u8303\u56f4\uff0cPython\u4f1a\u629b\u51faIndexError\u3002\u56e0\u6b64\uff0c\u5728\u4f7f\u7528\u7d22\u5f15\u65f6\u5e94\u786e\u4fdd\u7d22\u5f15\u503c\u5728\u5408\u6cd5\u8303\u56f4\u5185\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5207\u7247\u63d0\u53d6<\/p>\n<\/p>\n<p><p>\u5207\u7247\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u63d0\u53d6\u5217\u8868\u4e2d\u4e00\u6bb5\u8fde\u7eed\u7684\u5143\u7d20\u3002\u5207\u7247\u53ef\u4ee5\u6307\u5b9a\u8d77\u59cb\u4f4d\u7f6e\u3001\u7ed3\u675f\u4f4d\u7f6e\u548c\u6b65\u957f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u5207\u7247<\/strong><\/p>\n<\/p>\n<p><p>\u5207\u7247\u8bed\u6cd5\u4e3a<code>list[start:end]<\/code>\uff0c\u5b83\u4f1a\u8fd4\u56de\u4ece<code>start<\/code>\u5230<code>end-1<\/code>\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">sub_list = my_list[1:3]  # \u63d0\u53d6\u7b2c\u4e8c\u4e2a\u5230\u7b2c\u4e09\u4e2a\u5143\u7d20\uff0c\u7ed3\u679c\u4e3a[20, 30]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6b65\u957f\u5207\u7247<\/strong><\/p>\n<\/p>\n<p><p>\u6b65\u957f\u5141\u8bb8\u6211\u4eec\u4ee5\u6307\u5b9a\u7684\u95f4\u9694\u63d0\u53d6\u5143\u7d20\uff0c\u8bed\u6cd5\u4e3a<code>list[start:end:step]<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">step_list = my_list[0:5:2]  # \u6bcf\u9694\u4e00\u4e2a\u5143\u7d20\u63d0\u53d6\uff0c\u7ed3\u679c\u4e3a[10, 30, 50]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7701\u7565\u53c2\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5207\u7247\u4e2d\uff0c\u53ef\u4ee5\u7701\u7565<code>start<\/code>\u3001<code>end<\/code>\u548c<code>step<\/code>\uff0cPython\u4f1a\u4f7f\u7528\u9ed8\u8ba4\u503c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">all_elements = my_list[:]  # \u63d0\u53d6\u6240\u6709\u5143\u7d20<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u5217\u8868\u89e3\u6790\u63d0\u53d6<\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662fPython\u7684\u4e00\u79cd\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u8bed\u6cd5\uff0c\u7528\u4e8e\u4ece\u5217\u8868\u4e2d\u63d0\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\uff0c\u8fd8\u53ef\u4ee5\u7528\u4e8e\u5bf9\u63d0\u53d6\u7684\u5143\u7d20\u8fdb\u884c\u52a0\u5de5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u57fa\u672c\u5217\u8868\u89e3\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u7684\u57fa\u672c\u5f62\u5f0f\u4e3a<code>[expression for item in iterable]<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">squares = [x*x for x in my_list]  # \u63d0\u53d6\u6bcf\u4e2a\u5143\u7d20\u7684\u5e73\u65b9<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e26\u6761\u4ef6\u7684\u5217\u8868\u89e3\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u5728\u5217\u8868\u89e3\u6790\u4e2d\u52a0\u5165\u6761\u4ef6\uff0c\u4ece\u800c\u53ea\u63d0\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">even_numbers = [x for x in my_list if x % 2 == 0]  # \u63d0\u53d6\u5076\u6570<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5d4c\u5957\u5217\u8868\u89e3\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u53ef\u4ee5\u5d4c\u5957\uff0c\u7528\u4e8e\u63d0\u53d6\u591a\u7ef4\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<p>flatten_matrix = [num for row in matrix for num in row]  # \u5c06\u4e8c\u7ef4\u5217\u8868\u5c55\u5f00\u4e3a\u4e00\u7ef4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u7d22\u5f15\u3001\u5207\u7247\u548c\u5217\u8868\u89e3\u6790\uff0cPython\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>filter\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p><code>filter<\/code>\u51fd\u6570\u53ef\u4ee5\u7ed3\u5408lambda\u8868\u8fbe\u5f0f\uff0c\u7528\u4e8e\u63d0\u53d6\u7b26\u5408\u6761\u4ef6\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">filtered_list = list(filter(lambda x: x &gt; 20, my_list))  # \u63d0\u53d6\u5927\u4e8e20\u7684\u5143\u7d20<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>map\u51fd\u6570<\/strong><\/p>\n<\/p>\n<p><p><code>map<\/code>\u51fd\u6570\u7528\u4e8e\u5bf9\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u5e94\u7528\u540c\u4e00\u4e2a\u51fd\u6570\uff0c\u867d\u7136\u4e0d\u76f4\u63a5\u7528\u4e8e\u63d0\u53d6\uff0c\u4f46\u53ef\u4ee5\u7ed3\u5408\u6761\u4ef6\u903b\u8f91\u95f4\u63a5\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">mapped_list = list(map(lambda x: x if x &gt; 20 else None, my_list))  # \u5904\u7406\u4f46\u4e0d\u63d0\u53d6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>numpy\u6a21\u5757<\/strong><\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6570\u503c\u578b\u5217\u8868\uff0c<code>numpy<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7528\u4e8e\u63d0\u53d6\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>np_array = np.array(my_list)<\/p>\n<p>extracted_elements = np_array[np_array &gt; 20]  # \u63d0\u53d6\u5927\u4e8e20\u7684\u5143\u7d20<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5e94\u7528\u573a\u666f\u4e0e\u9009\u62e9<\/p>\n<\/p>\n<p><p>\u4e0d\u540c\u7684\u63d0\u53d6\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7d22\u5f15\u548c\u5207\u7247<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u4f60\u77e5\u9053\u9700\u8981\u63d0\u53d6\u5143\u7d20\u7684\u4f4d\u7f6e\u65f6\uff0c\u7d22\u5f15\u548c\u5207\u7247\u662f\u6700\u4f73\u9009\u62e9\uff0c\u5c24\u5176\u5728\u64cd\u4f5c\u56fa\u5b9a\u957f\u5ea6\u7684\u5217\u8868\u65f6\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5217\u8868\u89e3\u6790<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u5bf9\u63d0\u53d6\u7684\u5143\u7d20\u8fdb\u884c\u52a0\u5de5\u6216\u8005\u63d0\u53d6\u7b26\u5408\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u65f6\uff0c\u5217\u8868\u89e3\u6790\u56e0\u5176\u7b80\u6d01\u6027\u548c\u53ef\u8bfb\u6027\u800c\u6210\u4e3a\u9996\u9009\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>filter\u548cmap<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u5728\u63d0\u53d6\u8fc7\u7a0b\u4e2d\u5e94\u7528\u590d\u6742\u903b\u8f91\u65f6\uff0c<code>filter<\/code>\u548c<code>map<\/code>\u51fd\u6570\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>numpy<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u578b\u6570\u503c\u6570\u636e\u96c6\u65f6\uff0c<code>numpy<\/code>\u7531\u4e8e\u5176\u9ad8\u6548\u7684\u8ba1\u7b97\u80fd\u529b\u800c\u88ab\u5e7f\u6cdb\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u4e4b\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u63d0\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u548c\u9002\u7528\u573a\u666f\u3002\u7406\u89e3\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5de5\u4f5c\u539f\u7406\uff0c\u5e76\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u662f\u7f16\u5199\u9ad8\u6548Python\u4ee3\u7801\u7684\u5173\u952e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u9ad8\u6548\u63d0\u53d6\u5217\u8868\u7684\u7279\u5b9a\u5143\u7d20\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u3001\u5207\u7247\u6216\u5faa\u73af\u7b49\u591a\u79cd\u65b9\u6cd5\u6765\u63d0\u53d6\u7279\u5b9a\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u7b5b\u9009\u51fa\u7b26\u5408\u8981\u6c42\u7684\u5143\u7d20\uff0c\u4ee3\u7801\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">original_list = [1, 2, 3, 4, 5]\nextracted_elements = [x for x in original_list if x &gt; 2]\nprint(extracted_elements)  # \u8f93\u51fa: [3, 4, 5]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u65e2\u7b80\u6d01\u53c8\u9ad8\u6548\uff0c\u9002\u5408\u5904\u7406\u8f83\u5927\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u4ece\u5217\u8868\u4e2d\u63d0\u53d6\u552f\u4e00\u503c\uff1f<\/strong><br \/>\u5982\u679c\u5e0c\u671b\u4ece\u5217\u8868\u4e2d\u63d0\u53d6\u552f\u4e00\u503c\uff0c\u53ef\u4ee5\u5229\u7528\u96c6\u5408\uff08set\uff09\u6765\u53bb\u91cd\u3002\u8f6c\u6362\u4e3a\u96c6\u5408\u540e\u518d\u8f6c\u6362\u56de\u5217\u8868\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\uff1a  <\/p>\n<pre><code class=\"language-python\">original_list = [1, 2, 2, 3, 4, 4, 5]\nunique_values = list(set(original_list))\nprint(unique_values)  # \u8f93\u51fa: [1, 2, 3, 4, 5]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u7b80\u5355\uff0c\u800c\u4e14\u80fd\u6709\u6548\u53bb\u9664\u91cd\u590d\u5143\u7d20\u3002<\/p>\n<p><strong>Python\u4e2d\u5982\u4f55\u63d0\u53d6\u5217\u8868\u7684\u5b50\u5217\u8868\uff1f<\/strong><br \/>\u63d0\u53d6\u5b50\u5217\u8868\u7684\u65b9\u5f0f\u53ef\u4ee5\u901a\u8fc7\u5207\u7247\u5b9e\u73b0\u3002\u901a\u8fc7\u6307\u5b9a\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u53ef\u4ee5\u83b7\u53d6\u4efb\u610f\u8303\u56f4\u5185\u7684\u5143\u7d20\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">original_list = [10, 20, 30, 40, 50]\nsub_list = original_list[1:4]  # \u63d0\u53d6\u7d22\u5f151\u52303\u7684\u5143\u7d20\nprint(sub_list)  # \u8f93\u51fa: [20, 30, 40]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u7075\u6d3b\u4e14\u6613\u4e8e\u4f7f\u7528\uff0c\u9002\u5408\u9700\u8981\u83b7\u53d6\u7279\u5b9a\u8303\u56f4\u6570\u636e\u7684\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u63d0\u53d6\u5217\u8868\u4e2d\u7684\u5143\u7d20\u53ef\u4ee5\u901a\u8fc7\u7d22\u5f15\u3001\u5207\u7247\u3001\u5217\u8868\u89e3\u6790\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5404\u6709\u4f18\u52a3\uff0c\u5177\u4f53\u5e94\u7528\u573a\u666f\u51b3\u5b9a\u4e86\u54ea [&hellip;]","protected":false},"author":3,"featured_media":987864,"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\/987859"}],"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=987859"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987859\/revisions"}],"predecessor-version":[{"id":987865,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/987859\/revisions\/987865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/987864"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=987859"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=987859"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=987859"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}