{"id":1001654,"date":"2024-12-27T10:02:08","date_gmt":"2024-12-27T02:02:08","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1001654.html"},"modified":"2024-12-27T10:02:11","modified_gmt":"2024-12-27T02:02:11","slug":"python%e4%b8%ad%e5%88%97%e8%a1%a8%e5%a6%82%e4%bd%95%e6%8d%a2%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1001654.html","title":{"rendered":"python\u4e2d\u5217\u8868\u5982\u4f55\u6362\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25075731\/df3d20f2-c608-44ab-ac25-fbcb40a82b7f.webp\" alt=\"python\u4e2d\u5217\u8868\u5982\u4f55\u6362\u884c\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u5217\u8868\u6362\u884c\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c<strong>\u53ef\u4ee5\u901a\u8fc7\u5728\u5217\u8868\u5b9a\u4e49\u65f6\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u6765\u663e\u5f0f\u6362\u884c\u3001\u4f7f\u7528\u62ec\u53f7\u81ea\u52a8\u6362\u884c\u3001\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u7ed3\u5408\u6362\u884c\u7b26\u3001\u4f7f\u7528\u5faa\u73af\u6253\u5370\u5217\u8868\u5143\u7d20<\/strong>\u3002\u4ee5\u4e0b\u662f\u5bf9\u8fd9\u4e9b\u65b9\u6cd5\u7684\u8be6\u7ec6\u4ecb\u7ecd\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u6362\u884c<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53cd\u659c\u6760\uff08\\\uff09\u53ef\u4ee5\u7528\u6765\u5728\u4ee3\u7801\u4e2d\u663e\u5f0f\u5730\u6362\u884c\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5b9a\u4e49\u5217\u8868\u65f6\u975e\u5e38\u6709\u7528\uff0c\u7279\u522b\u662f\u5f53\u5217\u8868\u5f88\u957f\u65f6\u3002\u901a\u8fc7\u5728\u6bcf\u884c\u672b\u5c3e\u6dfb\u52a0\u53cd\u659c\u6760\uff0c\u53ef\u4ee5\u5c06\u4e00\u4e2a\u957f\u5217\u8868\u5206\u5272\u6210\u591a\u4e2a\u884c\uff0c\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, \\<\/p>\n<p>           6, 7, 8, 9, 10]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u53cd\u659c\u6760\uff08\\\uff09\u5728Python\u4e2d\u8868\u793a\u884c\u7684\u5ef6\u7eed\uff0c\u610f\u5473\u7740\u5373\u4f7f\u4e0b\u4e00\u884c\u770b\u4f3c\u662f\u65b0\u7684\u884c\uff0c\u4f46\u5b9e\u9645\u4e0a\u5b83\u662f\u4e0e\u524d\u4e00\u884c\u8fde\u63a5\u7684\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u5904\u7406\u957f\u5217\u8868\u65f6\u975e\u5e38\u76f4\u89c2\uff0c\u4f46\u8981\u5c0f\u5fc3\u4f7f\u7528\uff0c\u4ee5\u9632\u6b62\u8bef\u5220\u6216\u6dfb\u52a0\u4e0d\u5fc5\u8981\u7684\u7a7a\u683c\u548c\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u62ec\u53f7\u81ea\u52a8\u6362\u884c<\/h3>\n<\/p>\n<p><p>Python\u4e2d\u7684\u62ec\u53f7\uff0c\u5305\u62ec\u5706\u62ec\u53f7<code>()<\/code>\u3001\u65b9\u62ec\u53f7<code>[]<\/code>\u548c\u5927\u62ec\u53f7<code>{}<\/code>\uff0c\u90fd\u53ef\u4ee5\u7528\u4e8e\u81ea\u52a8\u6362\u884c\u3002\u5728\u5b9a\u4e49\u957f\u5217\u8868\u65f6\uff0c\u53ef\u4ee5\u5c06\u5143\u7d20\u7528\u62ec\u53f7\u5305\u56f4\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u5728\u65b0\u884c\u7ee7\u7eed\u8f93\u5165\uff0c\u800c\u65e0\u9700\u4f7f\u7528\u53cd\u659c\u6760\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [<\/p>\n<p>    1, 2, 3, 4, 5,<\/p>\n<p>    6, 7, 8, 9, 10<\/p>\n<p>]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u8fd9\u79cd\u65b9\u6cd5\u6bd4\u4f7f\u7528\u53cd\u659c\u6760\u66f4\u7b80\u6d01\uff0c\u4e5f\u66f4\u5b89\u5168\uff0c\u56e0\u4e3a\u4e0d\u5bb9\u6613\u56e0\u4e3a\u9057\u6f0f\u53cd\u659c\u6760\u800c\u5bfc\u81f4\u8bed\u6cd5\u9519\u8bef\u3002\u6b64\u5916\uff0c\u62ec\u53f7\u672c\u8eab\u5c31\u662f\u5217\u8868\u7684\u5b9a\u4e49\u6807\u5fd7\uff0c\u56e0\u6b64\u5728\u89c6\u89c9\u4e0a\u66f4\u6e05\u6670\u660e\u4e86\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u7ed3\u5408\u6362\u884c\u7b26<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u60f3\u5728\u8f93\u51fa\u65f6\u4e3a\u5217\u8868\u5143\u7d20\u6362\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u7ed3\u5408\u6362\u884c\u7b26\u3002\u8fd9\u9002\u7528\u4e8e\u5e0c\u671b\u5c06\u5217\u8868\u5185\u5bb9\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8f93\u51fa\uff0c\u5e76\u5728\u6bcf\u4e2a\u5143\u7d20\u540e\u9762\u6dfb\u52a0\u6362\u884c\u7b26\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>print(&quot;\\n&quot;.join(map(str, my_list)))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u8fd9\u91cc\u7684<code>join()<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06\u5217\u8868\u7684\u6bcf\u4e2a\u5143\u7d20\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c<code>\\n<\/code>\u4f5c\u4e3a\u5206\u9694\u7b26\u3002\u7531\u4e8e<code>join()<\/code>\u65b9\u6cd5\u8981\u6c42\u6240\u6709\u5143\u7d20\u4e3a\u5b57\u7b26\u4e32\uff0c\u56e0\u6b64\u4f7f\u7528<code>map(str, my_list)<\/code>\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u8be5\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u8f93\u51fa\u683c\u5f0f\u5316\u7684\u6570\u636e\uff0c\u5c24\u5176\u662f\u5728\u751f\u6210\u62a5\u544a\u6216\u65e5\u5fd7\u6587\u4ef6\u65f6\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u5faa\u73af\u6253\u5370\u5217\u8868\u5143\u7d20<\/h3>\n<\/p>\n<p><p>\u5f53\u9700\u8981\u9010\u884c\u6253\u5370\u5217\u8868\u7684\u6bcf\u4e2a\u5143\u7d20\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u3002\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\u4e14\u4fbf\u4e8e\u63a7\u5236\u8f93\u51fa\u683c\u5f0f\uff0c\u53ef\u4ee5\u5728\u9700\u8981\u65f6\u6dfb\u52a0\u989d\u5916\u7684\u903b\u8f91\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>for item in my_list:<\/p>\n<p>    print(item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u5faa\u73af\u904d\u5386\u5217\u8868\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u9010\u884c\u6253\u5370\u3002\u6b64\u65b9\u6cd5\u6613\u4e8e\u7406\u89e3\u4e14\u9002\u7528\u4e8e\u51e0\u4e4e\u6240\u6709\u60c5\u51b5\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u5bf9\u6bcf\u4e2a\u5143\u7d20\u6267\u884c\u7279\u5b9a\u64cd\u4f5c\u65f6\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5728\u5b57\u7b26\u4e32\u4e2d\u5b9a\u4e49\u5217\u8868\u7684\u6362\u884c<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5728\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u5217\u8868\u5e76\u8fdb\u884c\u6362\u884c\u3002\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528\u591a\u884c\u5b57\u7b26\u4e32\u5b9a\u4e49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list_str = &quot;&quot;&quot;<\/p>\n<p>1<\/p>\n<p>2<\/p>\n<p>3<\/p>\n<p>4<\/p>\n<p>5<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<p>my_list = my_list_str.strip().split(&quot;\\n&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u901a\u8fc7\u591a\u884c\u5b57\u7b26\u4e32\u5b9a\u4e49\uff0c\u53ef\u4ee5\u6e05\u6670\u5730\u5c55\u793a\u5217\u8868\u5143\u7d20\u7684\u6392\u5217\u3002<code>strip()<\/code>\u65b9\u6cd5\u7528\u4e8e\u79fb\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u683c\u6216\u6362\u884c\u7b26\uff0c\u800c<code>split(&quot;\\n&quot;)<\/code>\u65b9\u6cd5\u5219\u5c06\u5b57\u7b26\u4e32\u6309\u6362\u884c\u7b26\u5206\u5272\u4e3a\u5217\u8868\u3002\u8fd9\u79cd\u65b9\u6cd5\u5e38\u7528\u4e8e\u4ece\u591a\u884c\u6587\u672c\u4e2d\u63d0\u53d6\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u7ed3\u5408\u6362\u884c<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662fPython\u4e2d\u4e00\u79cd\u5f3a\u5927\u7684\u7279\u6027\uff0c\u5141\u8bb8\u4f7f\u7528\u7b80\u6d01\u7684\u8bed\u6cd5\u521b\u5efa\u5217\u8868\u3002\u7ed3\u5408\u6362\u884c\u7b26\u4f7f\u7528\uff0c\u53ef\u4ee5\u5728\u521b\u5efa\u5217\u8868\u65f6\u5b9e\u73b0\u5143\u7d20\u7684\u6362\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [str(x) for x in range(1, 6)]<\/p>\n<p>formatted_list = &quot;\\n&quot;.join(my_list)<\/p>\n<p>print(formatted_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong>\u5217\u8868\u63a8\u5bfc\u5f0f\u5728\u4ee3\u7801\u7684\u7b80\u6d01\u6027\u548c\u53ef\u8bfb\u6027\u4e0a\u5177\u6709\u4f18\u52bf\u3002\u901a\u8fc7\u5c06\u751f\u6210\u7684\u5217\u8868\u5143\u7d20\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u7ed3\u5408\u6362\u884c\u7b26\uff0c\u53ef\u4ee5\u5feb\u901f\u521b\u5efa\u683c\u5f0f\u5316\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528<code>textwrap<\/code>\u6a21\u5757\u8fdb\u884c\u81ea\u52a8\u6362\u884c<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u957f\u5b57\u7b26\u4e32\u65f6\uff0cPython\u7684<code>textwrap<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u81ea\u52a8\u6362\u884c\u529f\u80fd\uff0c\u53ef\u4ee5\u6307\u5b9a\u6bcf\u884c\u7684\u6700\u5927\u5bbd\u5ea6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import textwrap<\/p>\n<p>my_list = [str(i) for i in range(1, 21)]<\/p>\n<p>long_string = &quot; &quot;.join(my_list)<\/p>\n<p>wrapped_string = textwrap.fill(long_string, width=10)<\/p>\n<p>print(wrapped_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u89e3\uff1a<\/strong><code>textwrap.fill()<\/code>\u65b9\u6cd5\u81ea\u52a8\u5c06\u957f\u5b57\u7b26\u4e32\u5206\u5272\u4e3a\u6307\u5b9a\u5bbd\u5ea6\u7684\u591a\u884c\u5b57\u7b26\u4e32\uff0c\u8fd9\u5bf9\u4e8e\u683c\u5f0f\u5316\u8f93\u51fa\u975e\u5e38\u6709\u7528\u3002\u901a\u8fc7\u6307\u5b9a\u5bbd\u5ea6\uff0c\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49\u8f93\u51fa\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5217\u8868\u6362\u884c\u7684\u65b9\u5f0f\u6709\u591a\u79cd\u9009\u62e9\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u3002<strong>\u4f7f\u7528\u53cd\u659c\u6760\u663e\u5f0f\u6362\u884c\u3001\u62ec\u53f7\u81ea\u52a8\u6362\u884c\u3001<code>join()<\/code>\u65b9\u6cd5\u7ed3\u5408\u6362\u884c\u7b26\u3001\u5faa\u73af\u6253\u5370\u5143\u7d20<\/strong>\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u90fd\u53ef\u4ee5\u6709\u6548\u5730\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u8f93\u51fa\u7684\u683c\u5f0f\u5316\u7a0b\u5ea6\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5e94\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u4ece\u800c\u7f16\u5199\u51fa\u6e05\u6670\u3001\u6613\u8bfb\u7684Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u957f\u5217\u8868\u6362\u884c\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5706\u62ec\u53f7\u3001\u65b9\u62ec\u53f7\u6216\u82b1\u62ec\u53f7\u6765\u5c06\u957f\u5217\u8868\u6362\u884c\u3002\u901a\u8fc7\u5c06\u5217\u8868\u7684\u5143\u7d20\u5206\u6210\u591a\u884c\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">my_list = [\n    1, 2, 3,\n    4, 5, 6,\n    7, 8, 9\n]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4f7f\u5f97\u6bcf\u4e2a\u5143\u7d20\u90fd\u80fd\u6e05\u6670\u5730\u663e\u793a\u5728\u4e0d\u540c\u7684\u884c\u4e0a\u3002<\/p>\n<p><strong>\u5728Python\u5217\u8868\u4e2d\uff0c\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u53cd\u659c\u6760\u6362\u884c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53cd\u659c\u6760\u53ef\u4ee5\u7528\u4e8e\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6362\u884c\uff0c\u4f46\u5e76\u4e0d\u63a8\u8350\uff0c\u56e0\u4e3a\u5b83\u53ef\u80fd\u5f71\u54cd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3002\u6b63\u786e\u7684\u505a\u6cd5\u662f\u4f7f\u7528\u5706\u62ec\u53f7\u6216\u65b9\u62ec\u53f7\u6765\u5305\u88f9\u5217\u8868\u5143\u7d20\u3002<\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, \\\n           4, 5, 6]\n<\/code><\/pre>\n<p>\u4f7f\u7528\u53cd\u659c\u6760\u7684\u65b9\u5f0f\u867d\u7136\u6709\u6548\uff0c\u4f46\u53ef\u80fd\u4f1a\u8ba9\u4eba\u6df7\u6dc6\uff0c\u5efa\u8bae\u5c3d\u91cf\u907f\u514d\u3002<\/p>\n<p><strong>\u6362\u884c\u540e\u5982\u4f55\u5728Python\u4e2d\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff1f<\/strong><br \/>\u65e0\u8bba\u5217\u8868\u5982\u4f55\u6362\u884c\uff0c\u8bbf\u95ee\u5143\u7d20\u7684\u65b9\u5f0f\u4fdd\u6301\u4e0d\u53d8\u3002\u4f7f\u7528\u7d22\u5f15\u6765\u83b7\u53d6\u7279\u5b9a\u5143\u7d20\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">print(my_list[0])  # \u8f93\u51fa: 1\nprint(my_list[3])  # \u8f93\u51fa: 4\n<\/code><\/pre>\n<p>\u6362\u884c\u5e76\u4e0d\u4f1a\u5f71\u54cd\u7d22\u5f15\u7684\u8ba1\u7b97\uff0c\u4ecd\u7136\u53ef\u4ee5\u50cf\u5f80\u5e38\u4e00\u6837\u4f7f\u7528\u7d22\u5f15\u8bbf\u95ee\u5143\u7d20\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5217\u8868\u6362\u884c\u7684\u65b9\u5f0f\u6709\u591a\u79cd\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5217\u8868\u5b9a\u4e49\u65f6\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u6765\u663e\u5f0f\u6362\u884c\u3001\u4f7f\u7528\u62ec\u53f7\u81ea\u52a8\u6362\u884c\u3001\u4f7f\u7528 [&hellip;]","protected":false},"author":3,"featured_media":1001669,"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\/1001654"}],"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=1001654"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1001654\/revisions"}],"predecessor-version":[{"id":1001671,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1001654\/revisions\/1001671"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1001669"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1001654"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1001654"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1001654"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}