{"id":977944,"date":"2024-12-27T06:33:44","date_gmt":"2024-12-26T22:33:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/977944.html"},"modified":"2024-12-27T06:33:46","modified_gmt":"2024-12-26T22:33:46","slug":"%e5%a6%82%e4%bd%95%e8%a1%a8%e7%a4%bapython%e5%88%97%e8%a1%a8%e5%8c%ba%e9%97%b4","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/977944.html","title":{"rendered":"\u5982\u4f55\u8868\u793apython\u5217\u8868\u533a\u95f4"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24203145\/a57df083-be02-425b-878e-df13d7f2ed63.webp\" alt=\"\u5982\u4f55\u8868\u793apython\u5217\u8868\u533a\u95f4\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8868\u793a\u5217\u8868\u533a\u95f4\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u548c\u5185\u7f6e\u51fd\u6570\u7b49\u3002\u5207\u7247\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u5f00\u59cb\u7d22\u5f15\u548c\u7ed3\u675f\u7d22\u5f15\u6765\u63d0\u53d6\u5b50\u5217\u8868\u3001\u5217\u8868\u63a8\u5bfc\u53ef\u4ee5\u7528\u4e8e\u521b\u5efa\u65b0\u7684\u5217\u8868\u4ee5\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u3001\u5185\u7f6e\u51fd\u6570\u5982<code>range()<\/code>\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u7279\u5b9a\u8303\u56f4\u7684\u6574\u6570\u5217\u8868\u3002\u5207\u7247\u64cd\u4f5c\u662f\u6700\u5e38\u7528\u548c\u76f4\u89c2\u7684\u65b9\u6cd5<\/strong>\u3002\u5207\u7247\u64cd\u4f5c\u53ef\u4ee5\u901a\u8fc7<code>list[start:end]<\/code>\u7684\u5f62\u5f0f\u6765\u5b9e\u73b0\uff0c\u5176\u4e2d<code>start<\/code>\u662f\u5f00\u59cb\u7d22\u5f15\uff0c<code>end<\/code>\u662f\u7ed3\u675f\u7d22\u5f15\uff08\u4e0d\u5305\u62ec\u5728\u5185\uff09\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u901a\u8fc7\u8c03\u6574\u7d22\u5f15\u503c\u6765\u83b7\u53d6\u5217\u8868\u7684\u4e0d\u540c\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u8ba8\u8bba\u5728Python\u4e2d\u5982\u4f55\u8868\u793a\u548c\u64cd\u4f5c\u5217\u8868\u533a\u95f4\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5207\u7247\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5207\u7247\uff08slicing\uff09\u662fPython\u4e2d\u83b7\u53d6\u5217\u8868\u533a\u95f4\u7684\u6700\u5e38\u7528\u65b9\u6cd5\u3002\u901a\u8fc7\u5207\u7247\u64cd\u4f5c\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u5217\u8868\u7684\u5b50\u90e8\u5206\u3002<\/p>\n<\/p>\n<p><h4>1. \u5207\u7247\u8bed\u6cd5<\/h4>\n<\/p>\n<p><p>\u5207\u7247\u7684\u57fa\u672c\u8bed\u6cd5\u662f<code>list[start:end:step]<\/code>\u3002\u5176\u4e2d\uff0c<code>start<\/code>\u8868\u793a\u5f00\u59cb\u7d22\u5f15\uff0c<code>end<\/code>\u8868\u793a\u7ed3\u675f\u7d22\u5f15\uff08\u4f46\u4e0d\u5305\u62ec\u8be5\u7d22\u5f15\u4f4d\u7f6e\uff09\uff0c<code>step<\/code>\u8868\u793a\u6b65\u957f\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u83b7\u53d6\u5b50\u5217\u8868<\/strong>\uff1a\u901a\u8fc7\u6307\u5b9a<code>start<\/code>\u548c<code>end<\/code>\uff0c\u53ef\u4ee5\u83b7\u53d6\u4ece<code>start<\/code>\u5230<code>end<\/code>\u4e4b\u95f4\u7684\u6240\u6709\u5143\u7d20\u3002<\/li>\n<li><strong>\u6b65\u957f\u7684\u4f7f\u7528<\/strong>\uff1a<code>step<\/code>\u53c2\u6570\u53ef\u4ee5\u7528\u6765\u8df3\u8fc7\u4e00\u4e9b\u5143\u7d20\uff0c\u4f8b\u5982\uff0c<code>list[::2]<\/code>\u53ef\u4ee5\u83b7\u53d6\u5217\u8868\u7684\u6240\u6709\u5076\u6570\u7d22\u5f15\u5143\u7d20\u3002<\/li>\n<\/ul>\n<p><h4>2. \u5207\u7247\u7684\u5e94\u7528\u793a\u4f8b<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/p>\n<p>numbers = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u83b7\u53d6\u4ece\u7d22\u5f152\u5230\u7d22\u5f155\u7684\u5b50\u5217\u8868<\/strong><\/h2>\n<p>sub_list = numbers[2:6]<\/p>\n<p>print(sub_list)  # \u8f93\u51fa: [2, 3, 4, 5]<\/p>\n<h2><strong>\u83b7\u53d6\u4ece\u7d22\u5f150\u5230\u7d22\u5f158\u4e4b\u95f4\u7684\u6bcf\u7b2c\u4e8c\u4e2a\u5143\u7d20<\/strong><\/h2>\n<p>step_list = numbers[0:9:2]<\/p>\n<p>print(step_list)  # \u8f93\u51fa: [0, 2, 4, 6, 8]<\/p>\n<h2><strong>\u83b7\u53d6\u6574\u4e2a\u5217\u8868\u7684\u5012\u5e8f<\/strong><\/h2>\n<p>reverse_list = numbers[::-1]<\/p>\n<p>print(reverse_list)  # \u8f93\u51fa: [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5217\u8868\u63a8\u5bfc<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\uff08list comprehension\uff09\u662fPython\u4e2d\u521b\u5efa\u5217\u8868\u7684\u4e00\u79cd\u7b80\u6d01\u65b9\u6cd5\u3002\u901a\u8fc7\u6761\u4ef6\u548c\u5faa\u73af\uff0c\u53ef\u4ee5\u5728\u5355\u884c\u4e2d\u751f\u6210\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\u7684\u65b0\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h4>1. \u5217\u8868\u63a8\u5bfc\u7684\u57fa\u672c\u8bed\u6cd5<\/h4>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u7684\u57fa\u672c\u5f62\u5f0f\u662f<code>[expression for item in iterable if condition]<\/code>\uff0c\u5176\u4e2d<code>expression<\/code>\u662f\u8981\u8ba1\u7b97\u5e76\u6dfb\u52a0\u5230\u5217\u8868\u4e2d\u7684\u5185\u5bb9\uff0c<code>condition<\/code>\u662f\u53ef\u9009\u7684\u8fc7\u6ee4\u6761\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2. \u5217\u8868\u63a8\u5bfc\u793a\u4f8b<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u751f\u6210\u4e00\u4e2a\u5305\u542b0\u52309\u7684\u5217\u8868<\/p>\n<p>numbers = [i for i in range(10)]<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u751f\u6210\u4e00\u4e2a\u5305\u542b\u5076\u6570\u7684\u5217\u8868<\/strong><\/h2>\n<p>even_numbers = [i for i in range(10) if i % 2 == 0]<\/p>\n<p>print(even_numbers)  # \u8f93\u51fa: [0, 2, 4, 6, 8]<\/p>\n<h2><strong>\u751f\u6210\u4e00\u4e2a\u5e73\u65b9\u503c\u7684\u5217\u8868<\/strong><\/h2>\n<p>squares = [i2 for i in range(10)]<\/p>\n<p>print(squares)  # \u8f93\u51fa: [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5185\u7f6e\u51fd\u6570\uff0c\u53ef\u4ee5\u8f85\u52a9\u751f\u6210\u6216\u64cd\u4f5c\u5217\u8868\u533a\u95f4\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528<code>range()<\/code>\u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>range()<\/code>\u51fd\u6570\u662f\u751f\u6210\u6574\u6570\u5e8f\u5217\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u5e38\u7528\u4e8e\u5faa\u73af\u63a7\u5236\u548c\u5217\u8868\u751f\u6210\u3002<\/p>\n<\/p>\n<ul>\n<li><strong>\u57fa\u672c\u7528\u6cd5<\/strong>\uff1a<code>range(start, stop[, step])<\/code>\uff0c\u751f\u6210\u4ece<code>start<\/code>\u5230<code>stop<\/code>\uff08\u4e0d\u5305\u62ecstop\uff09\u7684\u6574\u6570\u5e8f\u5217\uff0c<code>step<\/code>\u662f\u6b65\u957f\u3002<\/li>\n<\/ul>\n<p><h4>2. \u793a\u4f8b<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528range\u751f\u62100\u52309\u7684\u6570\u5b57\u5217\u8868<\/p>\n<p>numbers = list(range(10))<\/p>\n<p>print(numbers)  # \u8f93\u51fa: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]<\/p>\n<h2><strong>\u4f7f\u7528range\u751f\u6210\u5076\u6570<\/strong><\/h2>\n<p>even_numbers = list(range(0, 10, 2))<\/p>\n<p>print(even_numbers)  # \u8f93\u51fa: [0, 2, 4, 6, 8]<\/p>\n<h2><strong>\u4f7f\u7528range\u751f\u6210\u5012\u5e8f\u6570\u5b57<\/strong><\/h2>\n<p>reverse_numbers = list(range(9, -1, -1))<\/p>\n<p>print(reverse_numbers)  # \u8f93\u51fa: [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5217\u8868\u7684\u5e38\u89c1\u64cd\u4f5c<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5217\u8868\u533a\u95f4\u65f6\uff0c\u4e86\u89e3\u4e00\u4e9b\u5e38\u89c1\u7684\u5217\u8868\u64cd\u4f5c\u5c06\u6709\u52a9\u4e8e\u66f4\u597d\u5730\u5229\u7528Python\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u5217\u8868\u7684\u62fc\u63a5\u4e0e\u5408\u5e76<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u52a0\u6cd5\u8fd0\u7b97\u7b26<code>+<\/code>\u6765\u62fc\u63a5\u4e24\u4e2a\u5217\u8868\uff0c\u4ece\u800c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e24\u4e2a\u5217\u8868<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<h2><strong>\u62fc\u63a5\u5217\u8868<\/strong><\/h2>\n<p>combined_list = list1 + list2<\/p>\n<p>print(combined_list)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5217\u8868\u7684\u590d\u5236\u4e0e\u91cd\u590d<\/h4>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u4e58\u6cd5\u8fd0\u7b97\u7b26<code>*<\/code>\u6765\u590d\u5236\u548c\u91cd\u590d\u5217\u8868\u4e2d\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e00\u4e2a\u5217\u8868<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<h2><strong>\u590d\u5236\u5217\u8868<\/strong><\/h2>\n<p>copied_list = list1 * 2<\/p>\n<p>print(copied_list)  # \u8f93\u51fa: [1, 2, 3, 1, 2, 3]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5217\u8868\u7684\u6269\u5c55<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528<code>extend()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5217\u8868\u4e2d\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5b9a\u4e49\u4e24\u4e2a\u5217\u8868<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<h2><strong>\u6269\u5c55\u5217\u8868<\/strong><\/h2>\n<p>list1.extend(list2)<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5904\u7406\u5217\u8868\u533a\u95f4\u7684\u64cd\u4f5c\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u548c\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u7b49\u3002\u5207\u7247\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8bbf\u95ee\u5217\u8868\u7684\u4efb\u610f\u90e8\u5206\uff1b\u5217\u8868\u63a8\u5bfc\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u65b0\u7684\u5217\u8868\uff1b\u5185\u7f6e\u51fd\u6570\u5982<code>range()<\/code>\u53ef\u4ee5\u7528\u4e8e\u751f\u6210\u7279\u5b9a\u8303\u56f4\u7684\u6570\u5b57\u5e8f\u5217\u3002\u6b64\u5916\uff0c\u5217\u8868\u7684\u62fc\u63a5\u3001\u590d\u5236\u3001\u6269\u5c55\u7b49\u64cd\u4f5c\u4e5f\u975e\u5e38\u6709\u7528\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u7f16\u7a0b\u4e2d\u7075\u6d3b\u5730\u5904\u7406\u6570\u636e\u7ed3\u6784\u3002\u8fd9\u4e9b\u65b9\u6cd5\u7ed3\u5408\u4f7f\u7528\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u6211\u4eec\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u521b\u5efa\u4e00\u4e2a\u5305\u542b\u7279\u5b9a\u533a\u95f4\u7684\u5217\u8868\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>range()<\/code>\u51fd\u6570\u6765\u751f\u6210\u4e00\u4e2a\u5305\u542b\u7279\u5b9a\u533a\u95f4\u7684\u5217\u8868\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u60f3\u8981\u521b\u5efa\u4e00\u4e2a\u4ece1\u523010\u7684\u5217\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>list(range(1, 11))<\/code>\u3002\u8fd9\u5c06\u751f\u6210\u4e00\u4e2a\u5305\u542b1\u523010\u7684\u6240\u6709\u6574\u6570\u7684\u5217\u8868\u3002\u8fd8\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>step<\/code>\u53c2\u6570\u6765\u63a7\u5236\u6b65\u957f\uff0c\u4f8b\u5982<code>list(range(1, 11, 2))<\/code>\u5c06\u751f\u6210\u4e00\u4e2a\u5305\u542b1\u523010\u7684\u5947\u6570\u7684\u5217\u8868\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4f7f\u7528\u5207\u7247\u6765\u83b7\u53d6\u5217\u8868\u7684\u533a\u95f4\uff1f<\/strong><br \/>\u5207\u7247\u662fPython\u5217\u8868\u7684\u4e00\u9879\u5f3a\u5927\u529f\u80fd\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u5217\u8868\u7684\u7279\u5b9a\u533a\u95f4\u3002\u901a\u8fc7\u4f7f\u7528<code>list[start:end]<\/code>\u8bed\u6cd5\uff0c\u53ef\u4ee5\u63d0\u53d6\u4ece<code>start<\/code>\u7d22\u5f15\u5230<code>end<\/code>\u7d22\u5f15\u4e4b\u95f4\u7684\u6240\u6709\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6709\u4e00\u4e2a\u5217\u8868<code>my_list = [0, 1, 2, 3, 4, 5]<\/code>\uff0c\u4f7f\u7528<code>my_list[1:4]<\/code>\u5c06\u8fd4\u56de<code>[1, 2, 3]<\/code>\uff0c\u5373\u4ece\u7d22\u5f151\u5230\u7d22\u5f153\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u68c0\u67e5\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5728\u67d0\u4e2a\u5217\u8868\u533a\u95f4\u5185\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>in<\/code>\u5173\u952e\u5b57\u6765\u68c0\u67e5\u4e00\u4e2a\u5143\u7d20\u662f\u5426\u5b58\u5728\u4e8e\u5217\u8868\u7684\u67d0\u4e2a\u533a\u95f4\u5185\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5217\u8868<code>my_list = [10, 20, 30, 40, 50]<\/code>\uff0c\u5e76\u60f3\u68c0\u67e5\u6570\u503c30\u662f\u5426\u5728\u4ece\u7d22\u5f151\u52303\u7684\u533a\u95f4\u5185\uff0c\u53ef\u4ee5\u4f7f\u7528<code>30 in my_list[1:4]<\/code>\u3002\u8fd9\u5c06\u8fd4\u56de<code>True<\/code>\uff0c\u8868\u660e30\u786e\u5b9e\u5728\u8be5\u533a\u95f4\u5185\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8868\u793a\u5217\u8868\u533a\u95f4\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5207\u7247\u3001\u5217\u8868\u63a8\u5bfc\u548c\u5185\u7f6e\u51fd\u6570\u7b49\u3002\u5207\u7247\u53ef\u4ee5\u901a\u8fc7\u6307\u5b9a\u5f00\u59cb\u7d22\u5f15\u548c\u7ed3\u675f\u7d22 [&hellip;]","protected":false},"author":3,"featured_media":977953,"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\/977944"}],"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=977944"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/977944\/revisions"}],"predecessor-version":[{"id":977958,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/977944\/revisions\/977958"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/977953"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=977944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=977944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=977944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}