{"id":1030637,"date":"2024-12-31T11:18:43","date_gmt":"2024-12-31T03:18:43","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1030637.html"},"modified":"2024-12-31T11:18:46","modified_gmt":"2024-12-31T03:18:46","slug":"python%e5%a6%82%e4%bd%95%e4%ba%94%e4%b8%aa%e5%88%86%e4%b8%80%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1030637.html","title":{"rendered":"python\u5982\u4f55\u4e94\u4e2a\u5206\u4e00\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/ecf8e35a-b018-41cd-9f1d-45fd34a97e30.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u4e94\u4e2a\u5206\u4e00\u884c\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5c06\u6570\u636e\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5faa\u73af\u3001\u5217\u8868\u5207\u7247\u548c\u5e93\u51fd\u6570\u7b49<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5faa\u73af\u548c\u5217\u8868\u5207\u7247\u662f\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u5c55\u5f00\u4e00\u79cd\u65b9\u6cd5\u2014\u2014\u901a\u8fc7\u5faa\u73af\u548c\u5217\u8868\u5207\u7247\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u6807\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528for\u5faa\u73af\u548c\u5217\u8868\u5207\u7247<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5217\u8868\u5207\u7247\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5c06\u4e00\u4e2a\u5217\u8868\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u7684\u5b9e\u73b0\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_in_batches(data, batch_size=5):<\/p>\n<p>    for i in range(0, len(data), batch_size):<\/p>\n<p>        print(data[i:i + batch_size])<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]<\/p>\n<p>print_in_batches(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>print_in_batches<\/code>\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5217\u8868<code>data<\/code>\u548c\u4e00\u4e2a\u6279\u6b21\u5927\u5c0f<code>batch_size<\/code>\uff08\u9ed8\u8ba4\u4e3a5\uff09\u3002\u7136\u540e\uff0c\u4f7f\u7528\u4e00\u4e2a<code>for<\/code>\u5faa\u73af\u904d\u5386\u6570\u636e\u5217\u8868\uff0c\u5229\u7528\u5217\u8868\u5207\u7247\u529f\u80fd\uff0c\u6bcf\u6b21\u53d6\u51fa<code>batch_size<\/code>\u4e2a\u5143\u7d20\u5e76\u6253\u5370\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528while\u5faa\u73af<\/h3>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>while<\/code>\u5faa\u73af\u6765\u5b9e\u73b0\u76f8\u540c\u7684\u529f\u80fd\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def print_in_batches_while(data, batch_size=5):<\/p>\n<p>    i = 0<\/p>\n<p>    while i &lt; len(data):<\/p>\n<p>        print(data[i:i + batch_size])<\/p>\n<p>        i += batch_size<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]<\/p>\n<p>print_in_batches_while(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>print_in_batches_while<\/code>\u7684\u51fd\u6570\u3002\u8be5\u51fd\u6570\u4e0e\u524d\u4e00\u4e2a\u51fd\u6570\u7c7b\u4f3c\uff0c\u53ea\u662f\u5c06<code>for<\/code>\u5faa\u73af\u66ff\u6362\u4e3a<code>while<\/code>\u5faa\u73af\u3002\u901a\u8fc7\u63a7\u5236\u53d8\u91cf<code>i<\/code>\u7684\u503c\uff0c\u6bcf\u6b21\u9012\u589e<code>batch_size<\/code>\uff0c\u5b9e\u73b0\u6309\u6279\u6b21\u6253\u5370\u6570\u636e\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u751f\u6210\u5668<\/h3>\n<\/p>\n<p><p>\u751f\u6210\u5668\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5728\u5904\u7406\u5927\u6570\u636e\u96c6\u65f6\u63d0\u9ad8\u5185\u5b58\u6548\u7387\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u751f\u6210\u5668\u5b9e\u73b0\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e00\u884c\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def batch_generator(data, batch_size=5):<\/p>\n<p>    for i in range(0, len(data), batch_size):<\/p>\n<p>        yield data[i:i + batch_size]<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]<\/p>\n<p>for batch in batch_generator(data):<\/p>\n<p>    print(batch)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>batch_generator<\/code>\u7684\u751f\u6210\u5668\u51fd\u6570\u3002\u8be5\u51fd\u6570\u4f7f\u7528<code>yield<\/code>\u5173\u952e\u5b57\uff0c\u6bcf\u6b21\u8fd4\u56de\u4e00\u4e2a\u6279\u6b21\u7684\u6570\u636e\u3002\u5728\u4e3b\u7a0b\u5e8f\u4e2d\uff0c\u901a\u8fc7\u904d\u5386\u751f\u6210\u5668\u5bf9\u8c61\uff0c\u6bcf\u6b21\u6253\u5370\u4e00\u4e2a\u6279\u6b21\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528NumPy\u5e93<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u6570\u636e\u662f\u6570\u503c\u578b\u7684\uff0c\u5e76\u4e14\u9700\u8981\u8fdb\u884c\u590d\u6742\u7684\u6570\u503c\u8ba1\u7b97\uff0c\u53ef\u4ee5\u4f7f\u7528NumPy\u5e93\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>data = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])<\/p>\n<p>data = data.reshape(-1, 5)<\/p>\n<p>for row in data:<\/p>\n<p>    print(row)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165NumPy\u5e93\uff0c\u7136\u540e\u5c06\u6570\u636e\u5217\u8868\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\u3002\u4f7f\u7528<code>reshape<\/code>\u65b9\u6cd5\u5c06\u6570\u7ec4\u91cd\u65b0\u6574\u5f62\u4e3a\u6bcf\u884c5\u4e2a\u5143\u7d20\u7684\u4e8c\u7ef4\u6570\u7ec4\u3002\u6700\u540e\uff0c\u901a\u8fc7\u904d\u5386\u4e8c\u7ef4\u6570\u7ec4\u7684\u6bcf\u4e00\u884c\uff0c\u9010\u884c\u6253\u5370\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528Pandas\u5e93<\/h3>\n<\/p>\n<p><p>Pandas\u5e93\u662f\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u5c06\u6570\u636e\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p>df = df.values.reshape(-1, 5)<\/p>\n<p>for row in df:<\/p>\n<p>    print(row)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165Pandas\u5e93\uff0c\u7136\u540e\u5c06\u6570\u636e\u5217\u8868\u8f6c\u6362\u4e3aPandas DataFrame\u3002\u4f7f\u7528<code>values<\/code>\u5c5e\u6027\u5c06DataFrame\u8f6c\u6362\u4e3aNumPy\u6570\u7ec4\uff0c\u5e76\u4f7f\u7528<code>reshape<\/code>\u65b9\u6cd5\u5c06\u6570\u7ec4\u91cd\u65b0\u6574\u5f62\u4e3a\u6bcf\u884c5\u4e2a\u5143\u7d20\u7684\u4e8c\u7ef4\u6570\u7ec4\u3002\u6700\u540e\uff0c\u901a\u8fc7\u904d\u5386\u4e8c\u7ef4\u6570\u7ec4\u7684\u6bcf\u4e00\u884c\uff0c\u9010\u884c\u6253\u5370\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528itertools\u5e93<\/h3>\n<\/p>\n<p><p><code>itertools<\/code>\u5e93\u63d0\u4f9b\u4e86\u4e00\u4e9b\u6709\u7528\u7684\u8fed\u4ee3\u5668\u51fd\u6570\uff0c\u53ef\u4ee5\u7528\u6765\u5b9e\u73b0\u5c06\u6570\u636e\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u3002\u4ee5\u4e0b\u662f\u5177\u4f53\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>def batched(iterable, n):<\/p>\n<p>    it = iter(iterable)<\/p>\n<p>    while True:<\/p>\n<p>        batch = tuple(itertools.islice(it, n))<\/p>\n<p>        if not batch:<\/p>\n<p>            return<\/p>\n<p>        yield batch<\/p>\n<p>data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15]<\/p>\n<p>for batch in batched(data, 5):<\/p>\n<p>    print(batch)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3a<code>batched<\/code>\u7684\u751f\u6210\u5668\u51fd\u6570\u3002\u8be5\u51fd\u6570\u4f7f\u7528<code>itertools.islice<\/code>\u51fd\u6570\uff0c\u6bcf\u6b21\u4ece\u8fed\u4ee3\u5668\u4e2d\u5207\u51fa<code>n<\/code>\u4e2a\u5143\u7d20\uff0c\u8fd4\u56de\u4e00\u4e2a\u5143\u7ec4\u3002\u901a\u8fc7\u904d\u5386\u751f\u6210\u5668\u5bf9\u8c61\uff0c\u6bcf\u6b21\u6253\u5370\u4e00\u4e2a\u6279\u6b21\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5b9e\u73b0\u5c06\u6570\u636e\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u3002\u5177\u4f53\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u3001<code>while<\/code>\u5faa\u73af\u3001\u751f\u6210\u5668\u3001NumPy\u5e93\u3001Pandas\u5e93\u548c<code>itertools<\/code>\u5e93\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><strong>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u6570\u636e\u7c7b\u578b\u548c\u5904\u7406\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6267\u884c\u6548\u7387<\/strong>\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e\u6570\u503c\u578b\u6570\u636e\uff0c\u4f7f\u7528NumPy\u5e93\u53ef\u4ee5\u63d0\u9ad8\u5904\u7406\u6548\u7387\uff1b\u5bf9\u4e8e\u9700\u8981\u590d\u6742\u6570\u636e\u64cd\u4f5c\u7684\u573a\u666f\uff0cPandas\u5e93\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u5de5\u5177\uff1b\u5bf9\u4e8e\u5927\u6570\u636e\u96c6\uff0c\u751f\u6210\u5668\u548c<code>itertools<\/code>\u5e93\u53ef\u4ee5\u63d0\u9ad8\u5185\u5b58\u4f7f\u7528\u6548\u7387\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u6bcf\u4e94\u4e2a\u5143\u7d20\u6362\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u548c\u6761\u4ef6\u8bed\u53e5\u6765\u5b9e\u73b0\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6bcf\u4e94\u4e2a\u5206\u4e3a\u4e00\u884c\u3002\u4f7f\u7528<code>enumerate()<\/code>\u51fd\u6570\u53ef\u4ee5\u8f7b\u677e\u8ddf\u8e2a\u5f53\u524d\u7d22\u5f15\uff0c\u5e76\u5728\u6bcf\u4e94\u4e2a\u5143\u7d20\u540e\u6253\u5370\u6362\u884c\u7b26\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\nfor index, value in enumerate(my_list):\n    print(value, end=&#39; &#39;)\n    if (index + 1) % 5 == 0:\n        print()  # \u6362\u884c\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u800c\u6709\u6548\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6e05\u6670\u5730\u67e5\u770b\u8f93\u51fa\u3002<\/p>\n<p><strong>\u4f7f\u7528\u5217\u8868\u89e3\u6790\u6765\u5b9e\u73b0\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u884c\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5217\u8868\u89e3\u6790\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u65b0\u7684\u5217\u8868\u3002\u4e3a\u4e86\u5b9e\u73b0\u6bcf\u4e94\u4e2a\u5143\u7d20\u6362\u884c\uff0c\u53ef\u4ee5\u7ed3\u5408\u5b57\u7b26\u4e32\u7684<code>join()<\/code>\u65b9\u6cd5\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\nlines = [&#39; &#39;.join(map(str, my_list[i:i+5])) for i in range(0, len(my_list), 5)]\nprint(&quot;\\n&quot;.join(lines))\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u7b80\u6d01\uff0c\u8fd8\u80fd\u6709\u6548\u5904\u7406\u66f4\u5927\u7684\u6570\u636e\u96c6\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u5b9e\u73b0\u6bcf\u4e94\u4e2a\u5143\u7d20\u4e00\u884c\u7684\u529f\u80fd\uff1f<\/strong><br \/>\u786e\u5b9e\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u5982<code>pandas<\/code>\uff0c\u6765\u5904\u7406\u8fd9\u79cd\u9700\u6c42\u3002<code>pandas<\/code>\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\uff0c\u53ef\u4ee5\u8f7b\u677e\u5c06\u6570\u636e\u683c\u5f0f\u5316\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\nmy_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]\ndf = pd.Series(my_list)\nprint(df.values.reshape(-1, 5))\n<\/code><\/pre>\n<p>\u4f7f\u7528<code>pandas<\/code>\u53ef\u4ee5\u6709\u6548\u5904\u7406\u6570\u636e\u7684\u590d\u6742\u6027\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u66f4\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u65f6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5c06\u6570\u636e\u6309\u6bcf\u4e94\u4e2a\u5143\u7d20\u5206\u4e3a\u4e00\u884c\u663e\u793a\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5faa\u73af\u3001\u5217\u8868\u5207\u7247\u548c\u5e93\u51fd\u6570\u7b49\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5faa\u73af\u548c [&hellip;]","protected":false},"author":3,"featured_media":1030644,"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\/1030637"}],"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=1030637"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1030637\/revisions"}],"predecessor-version":[{"id":1030649,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1030637\/revisions\/1030649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1030644"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1030637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1030637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1030637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}