{"id":1159451,"date":"2025-01-13T18:53:02","date_gmt":"2025-01-13T10:53:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1159451.html"},"modified":"2025-01-13T18:53:06","modified_gmt":"2025-01-13T10:53:06","slug":"python%e5%a6%82%e4%bd%95%e5%af%b9list%e8%bf%9b%e8%a1%8c%e5%88%86%e5%88%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1159451.html","title":{"rendered":"python\u5982\u4f55\u5bf9list\u8fdb\u884c\u5206\u5217"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25201206\/786a72ed-3545-4494-a858-07cdf18c665e.webp\" alt=\"python\u5982\u4f55\u5bf9list\u8fdb\u884c\u5206\u5217\" \/><\/p>\n<p><p> <strong>Python\u4e2d\u5bf9list\u8fdb\u884c\u5206\u5217\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001itertools\u6a21\u5757\u7b49\u3002\u5176\u4e2d\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5207\u7247\u6765\u5206\u5217\u3002\u5207\u7247\u64cd\u4f5c\u7b80\u5355\u3001\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5207\u7247<\/p>\n<\/p>\n<p><p>\u5207\u7247\u662fPython\u4e2d\u7528\u4e8e\u8bbf\u95ee\u548c\u4fee\u6539\u5e8f\u5217\uff08\u5982\u5217\u8868\u3001\u5b57\u7b26\u4e32\u3001\u5143\u7ec4\uff09\u7684\u4e00\u79cd\u64cd\u4f5c\u3002\u5207\u7247\u53ef\u4ee5\u4ece\u4e00\u4e2a\u5217\u8868\u4e2d\u63d0\u53d6\u51fa\u4e00\u90e8\u5206\u5143\u7d20\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/p>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528\u5207\u7247\u5c06\u5217\u8868\u5206\u6210\u4e24\u4e2a\u90e8\u5206<\/strong><\/h2>\n<p>list1 = my_list[:5]  # \u524d\u4e94\u4e2a\u5143\u7d20<\/p>\n<p>list2 = my_list[5:]  # \u5269\u4f59\u7684\u5143\u7d20<\/p>\n<p>print(&quot;List 1:&quot;, list1)<\/p>\n<p>print(&quot;List 2:&quot;, list2)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\uff0c\u5e76\u4e14\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u4e0d\u8fc7\uff0c\u5982\u679c\u9700\u8981\u66f4\u590d\u6742\u7684\u5206\u5217\u64cd\u4f5c\uff0c\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662fPython\u4e2d\u4e00\u79cd\u7b80\u6d01\u7684\u751f\u6210\u5217\u8868\u7684\u65b9\u5f0f\uff0c\u53ef\u4ee5\u7528\u4e8e\u5bf9\u5217\u8868\u8fdb\u884c\u590d\u6742\u7684\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/p>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u5c06\u5217\u8868\u5206\u6210\u5947\u6570\u548c\u5076\u6570\u4e24\u90e8\u5206<\/strong><\/h2>\n<p>odd_list = [x for x in my_list if x % 2 != 0]<\/p>\n<p>even_list = [x for x in my_list if x % 2 == 0]<\/p>\n<p>print(&quot;Odd List:&quot;, odd_list)<\/p>\n<p>print(&quot;Even List:&quot;, even_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u5bf9\u5217\u8868\u8fdb\u884c\u5404\u79cd\u590d\u6742\u7684\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528itertools\u6a21\u5757<\/p>\n<\/p>\n<p><p>itertools\u6a21\u5757\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u6a21\u5757\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u7528\u4e8e\u64cd\u4f5c\u8fed\u4ee3\u5668\u7684\u51fd\u6570\u3002\u53ef\u4ee5\u4f7f\u7528itertools\u4e2d\u7684\u5206\u7ec4\u51fd\u6570\u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528itertools.groupby\u5c06\u5217\u8868\u6309\u5947\u6570\u548c\u5076\u6570\u5206\u7ec4<\/strong><\/h2>\n<p>grouped = itertools.groupby(my_list, key=lambda x: x % 2)<\/p>\n<h2><strong>\u751f\u6210\u5206\u7ec4\u540e\u7684\u5217\u8868<\/strong><\/h2>\n<p>odd_list = []<\/p>\n<p>even_list = []<\/p>\n<p>for key, group in grouped:<\/p>\n<p>    if key == 0:<\/p>\n<p>        even_list.extend(list(group))<\/p>\n<p>    else:<\/p>\n<p>        odd_list.extend(list(group))<\/p>\n<p>print(&quot;Odd List:&quot;, odd_list)<\/p>\n<p>print(&quot;Even List:&quot;, even_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>itertools\u6a21\u5757\u63d0\u4f9b\u4e86\u8bb8\u591a\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u5bf9\u5217\u8868\u8fdb\u884c\u590d\u6742\u7684\u5206\u5217\u548c\u5206\u7ec4\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u7279\u5b9a\u89c4\u5219\u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\uff0c\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b8c\u6210\u8fd9\u4e00\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\uff0c\u5c06\u5217\u8868\u6309\u7279\u5b9a\u89c4\u5219\u5206\u5217<\/p>\n<p>def split_list(lst, n):<\/p>\n<p>    &quot;&quot;&quot;\u5c06\u5217\u8868\u6bcfn\u4e2a\u5143\u7d20\u5206\u6210\u4e00\u7ec4&quot;&quot;&quot;<\/p>\n<p>    return [lst[i:i + n] for i in range(0, len(lst), n)]<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u8c03\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/strong><\/h2>\n<p>result = split_list(my_list, 3)<\/p>\n<p>print(&quot;Result:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u5b9a\u5236\u5206\u5217\u903b\u8f91\uff0c\u5177\u6709\u5f88\u9ad8\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528 numpy \u5e93<\/p>\n<\/p>\n<p><p>Numpy \u662f Python \u4e2d\u975e\u5e38\u6d41\u884c\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u51fd\u6570\u3002\u53ef\u4ee5\u4f7f\u7528 Numpy \u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528 numpy.array_split \u5c06\u5217\u8868\u5206\u6210\u6307\u5b9a\u6570\u91cf\u7684\u5b50\u5217\u8868<\/strong><\/h2>\n<p>result = np.array_split(my_list, 3)<\/p>\n<p>print(&quot;Result:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Numpy \u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u51fd\u6570\uff0c\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528 pandas \u5e93<\/p>\n<\/p>\n<p><p>Pandas \u662f Python \u4e2d\u53e6\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u6570\u636e\u5904\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u6548\u7684\u6570\u636e\u64cd\u4f5c\u51fd\u6570\u3002\u53ef\u4ee5\u4f7f\u7528 Pandas \u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u8f6c\u6362\u4e3a pandas.Series<\/strong><\/h2>\n<p>series = pd.Series(my_list)<\/p>\n<h2><strong>\u4f7f\u7528 pandas.cut \u5c06\u5217\u8868\u5206\u6210\u6307\u5b9a\u6570\u91cf\u7684\u533a\u95f4<\/strong><\/h2>\n<p>result = pd.cut(series, 3)<\/p>\n<p>print(&quot;Result:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Pandas \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u64cd\u4f5c\u51fd\u6570\uff0c\u9002\u7528\u4e8e\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528 more_itertools \u5e93<\/p>\n<\/p>\n<p><p>more_itertools \u662f\u4e00\u4e2a\u6269\u5c55\u4e86 itertools \u6a21\u5757\u7684\u7b2c\u4e09\u65b9\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u8fed\u4ee3\u5668\u64cd\u4f5c\u51fd\u6570\u3002\u53ef\u4ee5\u4f7f\u7528 more_itertools \u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import more_itertools as mit<\/p>\n<h2><strong>\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/strong><\/h2>\n<p>my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528 more_itertools.chunked \u5c06\u5217\u8868\u5206\u6210\u6307\u5b9a\u5927\u5c0f\u7684\u5757<\/strong><\/h2>\n<p>result = list(mit.chunked(my_list, 3))<\/p>\n<p>print(&quot;Result:&quot;, result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>more_itertools \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u8fed\u4ee3\u5668\u64cd\u4f5c\u51fd\u6570\uff0c\u9002\u7528\u4e8e\u590d\u6742\u7684\u8fed\u4ee3\u5668\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3\uff1a<\/p>\n<\/p>\n<p><p>Python \u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u5bf9\u5217\u8868\u8fdb\u884c\u5206\u5217\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001itertools \u6a21\u5757\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u3001Numpy \u5e93\u3001Pandas \u5e93\u548c more_itertools \u5e93\u7b49\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u89c4\u6a21\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u5206\u5217\u64cd\u4f5c\uff0c\u5207\u7247\u548c\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u975e\u5e38\u65b9\u4fbf\u7684\u9009\u62e9\uff1b\u5bf9\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528 Numpy \u6216 Pandas \u5e93\uff1b\u5bf9\u4e8e\u590d\u6742\u7684\u8fed\u4ee3\u5668\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4f7f\u7528 itertools \u6216 more_itertools \u5e93\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u638c\u63e1 Python \u4e2d\u7684\u5217\u8868\u5206\u5217\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5217\u8868\u6309\u7279\u5b9a\u89c4\u5219\u5206\u5217\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408<code>zip<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u5bf9\u5217\u8868\u7684\u5206\u5217\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5305\u542b\u591a\u4e2a\u5b50\u5217\u8868\u7684\u5217\u8868\uff0c\u53ef\u4ee5\u901a\u8fc7<code>zip(*your_list)<\/code>\u5c06\u5176\u5206\u5217\uff0c\u6bcf\u4e2a\u5b50\u5217\u8868\u7684\u5bf9\u5e94\u5143\u7d20\u5c06\u88ab\u63d0\u53d6\u5230\u65b0\u7684\u5b50\u5217\u8868\u4e2d\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u5904\u7406\u6570\u636e\uff0c\u7279\u522b\u662f\u5728\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u65f6\u3002<\/p>\n<p><strong>\u5728\u5206\u5217\u64cd\u4f5c\u4e2d\uff0cPython\u652f\u6301\u54ea\u4e9b\u6570\u636e\u7ed3\u6784\uff1f<\/strong><br \/>\u9664\u4e86\u666e\u901a\u7684\u5217\u8868\uff0cPython\u7684\u5206\u5217\u64cd\u4f5c\u8fd8\u53ef\u4ee5\u5e94\u7528\u4e8e\u5143\u7ec4\u3001\u96c6\u5408\u7b49\u6570\u636e\u7ed3\u6784\u3002\u4f7f\u7528<code>zip<\/code>\u51fd\u6570\u65f6\uff0c\u53ea\u8981\u786e\u4fdd\u6570\u636e\u7ed3\u6784\u4e2d\u7684\u5143\u7d20\u6570\u91cf\u4e00\u81f4\uff0c\u5c31\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5206\u5217\u3002\u5982\u679c\u9700\u8981\u5904\u7406\u4e0d\u540c\u957f\u5ea6\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528<code>itertools.zip_longest<\/code>\u6765\u586b\u5145\u7f3a\u5931\u503c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5305\u542b\u975e\u6570\u5b57\u5143\u7d20\u7684\u5217\u8868\u5206\u5217\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5305\u542b\u5b57\u7b26\u4e32\u6216\u5176\u4ed6\u975e\u6570\u5b57\u5143\u7d20\u7684\u5217\u8868\uff0c\u5206\u5217\u64cd\u4f5c\u540c\u6837\u9002\u7528\u3002Python\u7684\u5217\u8868\u5206\u5217\u65b9\u6cd5\u4e0d\u4f1a\u5bf9\u6570\u636e\u7c7b\u578b\u505a\u9650\u5236\u3002\u4f60\u53ef\u4ee5\u5c06\u5305\u542b\u4e0d\u540c\u7c7b\u578b\u5143\u7d20\u7684\u5217\u8868\u8fdb\u884c\u5206\u5217\uff0c\u5f97\u5230\u7684\u7ed3\u679c\u5c06\u4fdd\u7559\u539f\u6709\u7684\u6570\u636e\u7c7b\u578b\u3002\u786e\u4fdd\u5728\u4f7f\u7528\u5206\u5217\u540e\uff0c\u8fdb\u884c\u5408\u9002\u7684\u6570\u636e\u5904\u7406\uff0c\u6bd4\u5982\u7c7b\u578b\u8f6c\u6362\u6216\u6570\u636e\u6e05\u6d17\uff0c\u4ee5\u4fbf\u5728\u540e\u7eed\u7684\u64cd\u4f5c\u4e2d\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u4e2d\u5bf9list\u8fdb\u884c\u5206\u5217\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001itertools\u6a21\u5757\u7b49\u3002\u5176\u4e2d\u4e00\u79cd\u5e38\u89c1 [&hellip;]","protected":false},"author":3,"featured_media":1159458,"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\/1159451"}],"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=1159451"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1159451\/revisions"}],"predecessor-version":[{"id":1159461,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1159451\/revisions\/1159461"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1159458"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1159451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1159451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1159451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}