{"id":937823,"date":"2024-12-26T19:59:20","date_gmt":"2024-12-26T11:59:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/937823.html"},"modified":"2024-12-26T19:59:23","modified_gmt":"2024-12-26T11:59:23","slug":"python%e5%a6%82%e4%bd%95%e6%8b%86%e5%88%86list","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/937823.html","title":{"rendered":"python\u5982\u4f55\u62c6\u5206list"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073507\/fb932cf1-c4f7-4cf2-a7bd-fdf36dc34f2b.webp\" alt=\"python\u5982\u4f55\u62c6\u5206list\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u62c6\u5206\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5217\u8868\u5207\u7247\u3001\u5faa\u73af\u3001\u51fd\u6570\u7b49\u3002\u5176\u4e2d\uff0c\u5217\u8868\u5207\u7247\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u3001\u76f4\u89c2\u3002\u5217\u8868\u5207\u7247\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u7d22\u5f15\u8303\u56f4\u6765\u83b7\u5f97\u5217\u8868\u7684\u5b50\u5217\u8868\uff0c\u4fbf\u4e8e\u64cd\u4f5c\u548c\u5904\u7406\u3002\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u4f7f\u7528\u5207\u7247\u7684\u65b9\u6cd5\u4ee5\u53ca\u5176\u4ed6\u51e0\u79cd\u5e38\u7528\u7684\u5217\u8868\u62c6\u5206\u6280\u672f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5217\u8868\u5207\u7247<\/p>\n<\/p>\n<p><p>\u5217\u8868\u5207\u7247\u662fPython\u4e2d\u5f3a\u5927\u4e14\u7b80\u5355\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u4ece\u5217\u8868\u4e2d\u63d0\u53d6\u5b50\u5217\u8868\u3002\u901a\u8fc7\u6307\u5b9a\u5f00\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5217\u8868\u5207\u7247\u7684\u57fa\u672c\u7528\u6cd5<\/li>\n<\/ol>\n<p><p>\u5217\u8868\u5207\u7247\u7684\u57fa\u672c\u8bed\u6cd5\u662f<code>list[start:end]<\/code>\uff0c\u5176\u4e2d<code>start<\/code>\u662f\u8d77\u59cb\u7d22\u5f15\uff0c<code>end<\/code>\u662f\u7ed3\u675f\u7d22\u5f15\uff0c\u8fd4\u56de\u503c\u662f\u4ece<code>start<\/code>\u5230<code>end-1<\/code>\u7684\u5b50\u5217\u8868\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>sub_list = my_list[1:4]  # [2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>my_list[1:4]<\/code>\u8fd4\u56de\u4e86\u4e00\u4e2a\u5305\u542b\u5143\u7d20<code>2, 3, 4<\/code>\u7684\u5b50\u5217\u8868\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5229\u7528\u6b65\u957f\u8fdb\u884c\u5207\u7247<\/li>\n<\/ol>\n<p><p>\u9664\u4e86\u6307\u5b9a\u5f00\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b65\u957f\u6765\u63a7\u5236\u5207\u7247\u7684\u95f4\u9694\u3002\u8bed\u6cd5\u662f<code>list[start:end:step]<\/code>\uff0c\u5176\u4e2d<code>step<\/code>\u662f\u6bcf\u6b21\u589e\u52a0\u7684\u7d22\u5f15\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>sub_list = my_list[0:5:2]  # [1, 3, 5]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6b65\u957f\u4e3a2\uff0c\u56e0\u6b64\u63d0\u53d6\u4e86\u7d22\u5f15\u4e3a0\u30012\u30014\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u8d1f\u7d22\u5f15\u548c\u9ed8\u8ba4\u503c<\/li>\n<\/ol>\n<p><p>Python\u652f\u6301\u8d1f\u7d22\u5f15\uff0c\u5141\u8bb8\u4ece\u5217\u8868\u672b\u5c3e\u5f00\u59cb\u8ba1\u6570\u3002\u6b64\u5916\uff0c\u53ef\u4ee5\u7701\u7565\u5f00\u59cb\u6216\u7ed3\u675f\u7d22\u5f15\uff0c\u5206\u522b\u8868\u793a\u4ece\u5217\u8868\u5f00\u5934\u6216\u7ed3\u5c3e\u5f00\u59cb\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>sub_list = my_list[-3:]  # [3, 4, 5]<\/p>\n<p>sub_list2 = my_list[:3]  # [1, 2, 3]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5faa\u73af\u62c6\u5206\u5217\u8868<\/p>\n<\/p>\n<p><p>\u5faa\u73af\u662f\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u6761\u4ef6\u5c06\u5217\u8868\u62c6\u5206\u4e3a\u591a\u4e2a\u90e8\u5206\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528for\u5faa\u73af<\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5217\u8868\uff0c\u5e76\u6839\u636e\u6761\u4ef6\u5c06\u5143\u7d20\u6dfb\u52a0\u5230\u4e0d\u540c\u7684\u5b50\u5217\u8868\u4e2d\u3002\u4f8b\u5982\uff0c\u5c06\u5217\u8868\u6309\u7167\u5947\u5076\u6570\u62c6\u5206\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>odd_list = []<\/p>\n<p>even_list = []<\/p>\n<p>for num in my_list:<\/p>\n<p>    if num % 2 == 0:<\/p>\n<p>        even_list.append(num)<\/p>\n<p>    else:<\/p>\n<p>        odd_list.append(num)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u901a\u8fc7\u5224\u65ad\u6bcf\u4e2a\u5143\u7d20\u662f\u5426\u4e3a\u5076\u6570\uff0c\u5c06\u5176\u5206\u522b\u6dfb\u52a0\u5230\u4e0d\u540c\u7684\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/li>\n<\/ol>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b9e\u73b0\u590d\u6742\u7684\u5217\u8868\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u62c6\u5206\u5217\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>odd_list = [num for num in my_list if num % 2 != 0]<\/p>\n<p>even_list = [num for num in my_list if num % 2 == 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u6d01\u4e14\u53ef\u8bfb\u6027\u5f3a\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u62c6\u5206\u5217\u8868<\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u4f7f\u7528Python\u6807\u51c6\u5e93\u4ee5\u5916\u7684\u7b2c\u4e09\u65b9\u5e93\u53ef\u4ee5\u7b80\u5316\u64cd\u4f5c\u3002NumPy\u662f\u4e00\u4e2a\u6d41\u884c\u7684\u5e93\uff0c\u63d0\u4f9b\u4e86\u591a\u79cd\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528NumPy\u8fdb\u884c\u62c6\u5206<\/li>\n<\/ol>\n<p><p>NumPy\u5e93\u63d0\u4f9b\u4e86<code>numpy.array_split()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u6570\u7ec4\u5747\u5300\u5730\u62c6\u5206\u4e3a\u591a\u4e2a\u5b50\u6570\u7ec4\u3002\u9700\u8981\u5148\u5c06\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>my_list = [1, 2, 3, 4, 5, 6]<\/p>\n<p>np_array = np.array(my_list)<\/p>\n<p>split_arrays = np.array_split(np_array, 3)<\/p>\n<p>for arr in split_arrays:<\/p>\n<p>    print(arr)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u88ab\u5747\u5300\u62c6\u5206\u4e3a3\u4e2a\u5b50\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528itertools\u6a21\u5757\u62c6\u5206\u5217\u8868<\/p>\n<\/p>\n<p><p>Python\u7684<code>itertools<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8fed\u4ee3\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u62c6\u5206\u5217\u8868\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>itertools.islice()<\/code><\/li>\n<\/ol>\n<p><p><code>itertools.islice()<\/code>\u53ef\u4ee5\u7528\u4e8e\u4ece\u53ef\u8fed\u4ee3\u5bf9\u8c61\u4e2d\u6309\u9700\u63d0\u53d6\u5143\u7d20\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>iterator = iter(my_list)<\/p>\n<p>chunk1 = list(itertools.islice(iterator, 2))<\/p>\n<p>chunk2 = list(itertools.islice(iterator, 2))<\/p>\n<p>chunk3 = list(itertools.islice(iterator, 2))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u521b\u5efa\u4e00\u4e2a\u8fed\u4ee3\u5668\uff0c\u53ef\u4ee5\u6309\u9700\u4ece\u4e2d\u63d0\u53d6\u5143\u7d20\u6765\u62c6\u5206\u5217\u8868\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u6709\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u7279\u5b9a\u89c4\u5219\u62c6\u5206\u5217\u8868\uff0c\u8fd9\u65f6\u81ea\u5b9a\u4e49\u51fd\u6570\u662f\u4e00\u4e2a\u597d\u9009\u62e9\u3002<\/p>\n<\/p>\n<ol>\n<li>\u7f16\u5199\u62c6\u5206\u51fd\u6570<\/li>\n<\/ol>\n<p><p>\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a\u51fd\u6570\uff0c\u5c06\u5217\u8868\u62c6\u5206\u4e3a\u56fa\u5b9a\u5927\u5c0f\u7684\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def split_list(lst, chunk_size):<\/p>\n<p>    for i in range(0, len(lst), chunk_size):<\/p>\n<p>        yield lst[i:i + chunk_size]<\/p>\n<p>my_list = [1, 2, 3, 4, 5, 6]<\/p>\n<p>for chunk in split_list(my_list, 2):<\/p>\n<p>    print(chunk)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u7075\u6d3b\u5730\u5b9a\u4e49\u62c6\u5206\u89c4\u5219\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001Python 3.12\u4e2d\u7684\u65b0\u7279\u6027<\/p>\n<\/p>\n<p><p>Python 3.12\u5f15\u5165\u4e86\u4e00\u4e9b\u65b0\u7684\u5217\u8868\u64cd\u4f5c\u529f\u80fd\uff0c\u8fd9\u4e9b\u529f\u80fd\u53ef\u4ee5\u7b80\u5316\u5217\u8868\u7684\u62c6\u5206\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4f7f\u7528<code>seqtools.chunked()<\/code><\/li>\n<\/ol>\n<p><p>Python 3.12\u4e2d\u7684<code>seqtools<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86<code>chunked()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u5217\u8868\u62c6\u5206\u4e3a\u5757\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seqtools<\/p>\n<p>my_list = [1, 2, 3, 4, 5, 6]<\/p>\n<p>chunks = list(seqtools.chunked(my_list, 2))<\/p>\n<p>for chunk in chunks:<\/p>\n<p>    print(chunk)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b0\u7279\u6027\u4f7f\u5f97\u5217\u8868\u62c6\u5206\u66f4\u52a0\u76f4\u63a5\u548c\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u62c6\u5206\u5217\u8868\u7684\u65b9\u6cd5\uff0c\u4ece\u7b80\u5355\u7684\u5207\u7247\u5230\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u548c\u65b0\u7279\u6027\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\u3002\u65e0\u8bba\u662f\u5904\u7406\u5c0f\u578b\u6570\u636e\u96c6\u8fd8\u662f\u5927\u578b\u6570\u636e\u96c6\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u9ad8\u6548\u5730\u64cd\u4f5c\u548c\u7ba1\u7406\u5217\u8868\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u4e00\u4e2a\u5217\u8868\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u7684\u65b9\u5f0f\u8f7b\u677e\u5c06\u4e00\u4e2a\u5217\u8868\u62c6\u5206\u6210\u591a\u4e2a\u5b50\u5217\u8868\u3002\u901a\u8fc7\u6307\u5b9a\u5207\u7247\u7684\u8d77\u59cb\u548c\u7ed3\u675f\u7d22\u5f15\uff0c\u53ef\u4ee5\u83b7\u53d6\u6240\u9700\u7684\u5b50\u5217\u8868\u3002\u4f8b\u5982\uff0c\u4f7f\u7528 <code>my_list[start:end]<\/code> \u53ef\u4ee5\u83b7\u5f97\u4ece<code>start<\/code>\u5230<code>end-1<\/code>\u7684\u5143\u7d20\u3002\u6b64\u5916\uff0c\u7ed3\u5408\u5faa\u73af\u6216\u5217\u8868\u63a8\u5bfc\u5f0f\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5c06\u4e00\u4e2a\u5927\u5217\u8868\u62c6\u5206\u4e3a\u591a\u4e2a\u5c0f\u5217\u8868\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u73b0\u6210\u7684\u5e93\u53ef\u4ee5\u5e2e\u52a9\u6211\u62c6\u5206\u5217\u8868\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u7684<code>more-itertools<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u51fd\u6570<code>chunked<\/code>\uff0c\u53ef\u4ee5\u7528\u6765\u5c06\u5217\u8868\u62c6\u5206\u6210\u6307\u5b9a\u5927\u5c0f\u7684\u5757\u3002\u5b89\u88c5\u8fd9\u4e2a\u5e93\u540e\uff0c\u4f7f\u7528 <code>chunked(my_list, n)<\/code> \u53ef\u4ee5\u76f4\u63a5\u5f97\u5230\u4e00\u4e2a\u751f\u6210\u5668\uff0c\u5176\u4e2d\u6bcf\u4e2a\u5143\u7d20\u90fd\u662f\u4e00\u4e2a\u5927\u5c0f\u4e3a<code>n<\/code>\u7684\u5b50\u5217\u8868\u3002\u8fd9\u79cd\u65b9\u6cd5\u5c24\u5176\u9002\u7528\u4e8e\u5904\u7406\u5927\u6570\u636e\u96c6\u65f6\u7684\u6027\u80fd\u4f18\u5316\u3002<\/p>\n<p><strong>\u5982\u4f55\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u62c6\u5206\u5217\u8868\uff1f<\/strong><br \/>\u62c6\u5206\u5217\u8868\u53ef\u4ee5\u57fa\u4e8e\u7279\u5b9a\u6761\u4ef6\u8fdb\u884c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\u4e0e\u6761\u4ef6\u8bed\u53e5\u7ed3\u5408\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u5305\u542b\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\u3002\u4f7f\u7528\u6761\u4ef6\u903b\u8f91\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u5206\u7c7b\uff0c\u5e76\u5c06\u5176\u5b58\u50a8\u5230\u4e0d\u540c\u7684\u5b50\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u5b9e\u73b0\u6309\u6761\u4ef6\u62c6\u5206\u7684\u76ee\u7684\u3002\u8fd9\u6837\u53ef\u4ee5\u7075\u6d3b\u5730\u5904\u7406\u5404\u79cd\u573a\u666f\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u62c6\u5206\u5217\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5217\u8868\u5207\u7247\u3001\u5faa\u73af\u3001\u51fd\u6570\u7b49\u3002\u5176\u4e2d\uff0c\u5217\u8868\u5207\u7247\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u56e0 [&hellip;]","protected":false},"author":3,"featured_media":937826,"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\/937823"}],"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=937823"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/937823\/revisions"}],"predecessor-version":[{"id":937827,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/937823\/revisions\/937827"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/937826"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=937823"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=937823"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=937823"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}