{"id":1085358,"date":"2025-01-08T13:15:24","date_gmt":"2025-01-08T05:15:24","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1085358.html"},"modified":"2025-01-08T13:15:27","modified_gmt":"2025-01-08T05:15:27","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%88%97%e8%a1%a8%e5%af%bc%e5%85%a5%e5%88%97%e8%a1%a8-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1085358.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5217\u8868\u5bfc\u5165\u5217\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195255\/0b930468-3bed-471b-a4ee-0e5fa0542000.webp\" alt=\"python\u5982\u4f55\u5c06\u5217\u8868\u5bfc\u5165\u5217\u8868\" \/><\/p>\n<p><p> <strong>\u8981\u5c06\u4e00\u4e2a\u5217\u8868\u5bfc\u5165\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528append()\u3001extend()\u3001\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff08+\uff09\u3001\u5217\u8868\u89e3\u6790\u7b49\u65b9\u6cd5<\/strong>\u3002\u5176\u4e2d\uff0c<strong>extend()<\/strong> \u65b9\u6cd5\u662f\u6700\u5e38\u89c1\u548c\u63a8\u8350\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u9ad8\u6548\u5730\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u9010\u4e2a\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><p><strong>extend() \u65b9\u6cd5<\/strong> \u5c06\u4e00\u4e2a\u5217\u8868\u7684\u6240\u6709\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u4e0e append() \u65b9\u6cd5\u4e0d\u540c\uff0cappend() \u4f1a\u5c06\u6574\u4e2a\u5217\u8868\u4f5c\u4e3a\u5355\u4e2a\u5143\u7d20\u6dfb\u52a0\uff0c\u800c extend() \u5219\u4f1a\u5c06\u6bcf\u4e2a\u5143\u7d20\u5206\u522b\u6dfb\u52a0\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001append() \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>append() \u65b9\u6cd5\u5c06\u6574\u4e2a\u5217\u8868\u4f5c\u4e3a\u5355\u4e2a\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1.append(list2)<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, [4, 5, 6]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0clist2 \u88ab\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u5143\u7d20\u6dfb\u52a0\u5230 list1 \u4e2d\uff0c\u7ed3\u679c\u662f\u4e00\u4e2a\u5d4c\u5957\u7684\u5217\u8868\u3002\u8981\u6ce8\u610f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u5e76\u4e0d\u662f\u6211\u4eec\u901a\u5e38\u60f3\u8981\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001extend() \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>extend() \u65b9\u6cd5\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u6240\u6709\u5143\u7d20\u9010\u4e2a\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\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><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0clist2 \u7684\u6240\u6709\u5143\u7d20\u88ab\u9010\u4e2a\u6dfb\u52a0\u5230 list1 \u4e2d\uff0c\u7ed3\u679c\u662f\u4e00\u4e2a\u5305\u542b\u6240\u6709\u5143\u7d20\u7684\u5355\u4e00\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff08+\uff09<\/h3>\n<\/p>\n<p><p>\u52a0\u6cd5\u8fd0\u7b97\u7b26\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u4e24\u4e2a\u5217\u8868\uff0c\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list3 = list1 + list2<\/p>\n<p>print(list3)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u5217\u8868\uff0c\u800c\u662f\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002\u7f3a\u70b9\u662f\u5b83\u9700\u8981\u989d\u5916\u7684\u5185\u5b58\u6765\u5b58\u50a8\u65b0\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5217\u8868\u89e3\u6790<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u89e3\u6790\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = [item for sublist in (list1, list2) for item in sublist]<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u975e\u5e38\u7075\u6d3b\uff0c\u7f3a\u70b9\u662f\u5b83\u53ef\u80fd\u4e0d\u5982 extend() \u65b9\u6cd5\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528 itertools.ch<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>n<\/h3>\n<\/p>\n<p><p>itertools.chain \u662f\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u5f0f\u6765\u5c06\u591a\u4e2a\u5217\u8868\u8fde\u63a5\u6210\u4e00\u4e2a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = list(itertools.chain(list1, list2))<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u975e\u5e38\u9ad8\u6548\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528 numpy \u5e93<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u79d1\u5b66\u8ba1\u7b97\u6216\u9700\u8981\u9ad8\u6548\u6570\u7ec4\u64cd\u4f5c\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528 numpy \u5e93\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = np.concatenate((list1, list2)).tolist()<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u5229\u7528\u4e86 numpy \u5e93\u7684\u9ad8\u6548\u6570\u7ec4\u64cd\u4f5c\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u989d\u5916\u5b89\u88c5 numpy \u5e93\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u4f7f\u7528 collections.deque<\/h3>\n<\/p>\n<p><p>collections.deque \u662f\u4e00\u79cd\u9ad8\u6548\u7684\u53cc\u7aef\u961f\u5217\uff0c\u53ef\u4ee5\u7528\u4e8e\u9ad8\u6548\u7684\u5217\u8868\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import deque<\/p>\n<p>list1 = deque([1, 2, 3])<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1.extend(list2)<\/p>\n<p>print(list(list1))  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f deque \u5728\u5904\u7406\u5927\u91cf\u6570\u636e\u65f6\u975e\u5e38\u9ad8\u6548\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u989d\u5916\u5b89\u88c5 collections \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u4f7f\u7528 functools.reduce<\/h3>\n<\/p>\n<p><p>functools.reduce \u53ef\u4ee5\u7528\u4e8e\u5c06\u591a\u4e2a\u5217\u8868\u5408\u5e76\u4e3a\u4e00\u4e2a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from functools import reduce<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = reduce(lambda x, y: x + y, [list1, list2])<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u975e\u5e38\u7075\u6d3b\uff0c\u7f3a\u70b9\u662f\u4ee3\u7801\u8f83\u4e3a\u590d\u6742\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u4f7f\u7528 map \u51fd\u6570<\/h3>\n<\/p>\n<p><p>map \u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u5c06\u591a\u4e2a\u5217\u8868\u5408\u5e76\u4e3a\u4e00\u4e2a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = list(map(lambda x: x, list1 + list2))<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u6d01\uff0c\u7f3a\u70b9\u662f\u53ef\u80fd\u4e0d\u5982\u5176\u4ed6\u65b9\u6cd5\u76f4\u89c2\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u4f7f\u7528 operator.concat<\/h3>\n<\/p>\n<p><p>operator.concat \u53ef\u4ee5\u7528\u4e8e\u5c06\u4e24\u4e2a\u5217\u8868\u5408\u5e76\u4e3a\u4e00\u4e2a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import operator<\/p>\n<p>list1 = [1, 2, 3]<\/p>\n<p>list2 = [4, 5, 6]<\/p>\n<p>list1 = operator.concat(list1, list2)<\/p>\n<p>print(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7b80\u6d01\uff0c\u7f3a\u70b9\u662f\u9700\u8981\u989d\u5916\u5b89\u88c5 operator \u6a21\u5757\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728 Python \u4e2d\uff0c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5217\u8868\u5bfc\u5165\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u6700\u5e38\u89c1\u548c\u63a8\u8350\u7684\u65b9\u6cd5\u662f\u4f7f\u7528 <strong>extend()<\/strong> \u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u9ad8\u6548\u4e14\u6613\u4e8e\u7406\u89e3\u3002\u6b64\u5916\uff0c\u6839\u636e\u5177\u4f53\u60c5\u51b5\u548c\u9700\u6c42\uff0c\u8fd8\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u52a0\u6cd5\u8fd0\u7b97\u7b26\u3001\u5217\u8868\u89e3\u6790\u3001itertools.chain\u3001numpy \u5e93\u7b49\u65b9\u6cd5\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u9700\u8981\u6839\u636e\u5177\u4f53\u60c5\u51b5\u6765\u51b3\u5b9a\uff0c\u4ee5\u786e\u4fdd\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\uff1f<\/strong><br \/>\u8981\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>extend()<\/code>\u65b9\u6cd5\u6216\u8005<code>+=<\/code>\u64cd\u4f5c\u7b26\u3002<code>extend()<\/code>\u65b9\u6cd5\u4f1a\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u6240\u6709\u5143\u7d20\u6dfb\u52a0\u5230\u76ee\u6807\u5217\u8868\u4e2d\uff0c\u800c<code>+=<\/code>\u64cd\u4f5c\u7b26\u5219\u4f1a\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\u3002\u4ee5\u4e0b\u662f\u793a\u4f8b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">list1 = [1, 2, 3]\nlist2 = [4, 5, 6]\nlist1.extend(list2)  # \u6216\u8005 list1 += list2\nprint(list1)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6]\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u5c06\u4e00\u4e2a\u5217\u8868\u7684\u5143\u7d20\u5bfc\u5165\u53e6\u4e00\u4e2a\u5217\u8868\uff1f<\/strong><br \/>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u7684\u65b9\u5f0f\u6765\u521b\u5efa\u65b0\u5217\u8868\uff0c\u5141\u8bb8\u4ece\u4e00\u4e2a\u5217\u8868\u4e2d\u9009\u62e9\u5143\u7d20\u5e76\u5c06\u5176\u5bfc\u5165\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">list1 = [1, 2, 3, 4, 5]\nlist2 = [x for x in list1 if x &gt; 2]  # \u9009\u62e9\u5927\u4e8e2\u7684\u5143\u7d20\nprint(list2)  # \u8f93\u51fa: [3, 4, 5]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u7b80\u6d01\uff0c\u800c\u4e14\u53ef\u4ee5\u6839\u636e\u6761\u4ef6\u7075\u6d3b\u9009\u62e9\u8981\u5bfc\u5165\u7684\u5143\u7d20\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u591a\u4e2a\u5217\u8868\u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u5217\u8868\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>+<\/code>\u64cd\u4f5c\u7b26\u6216<code>itertools.chain()<\/code>\u51fd\u6570\u5c06\u591a\u4e2a\u5217\u8868\u5408\u5e76\u4e3a\u4e00\u4e2a\u65b0\u5217\u8868\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import itertools\n\nlist1 = [1, 2, 3]\nlist2 = [4, 5, 6]\nlist3 = [7, 8, 9]\n\n# \u4f7f\u7528 + \u64cd\u4f5c\u7b26\nmerged_list = list1 + list2 + list3\n\n# \u6216\u8005\u4f7f\u7528 itertools.chain\nmerged_list_chain = list(itertools.chain(list1, list2, list3))\n\nprint(merged_list)        # \u8f93\u51fa: [1, 2, 3, 4, 5, 6, 7, 8, 9]\nprint(merged_list_chain)  # \u8f93\u51fa: [1, 2, 3, 4, 5, 6, 7, 8, 9]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u591a\u4e2a\u5217\u8868\u5408\u5e76\uff0c\u5f62\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06\u4e00\u4e2a\u5217\u8868\u5bfc\u5165\u5230\u53e6\u4e00\u4e2a\u5217\u8868\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528append()\u3001extend()\u3001\u52a0\u6cd5\u8fd0\u7b97\u7b26\uff08+\uff09\u3001\u5217\u8868\u89e3\u6790\u7b49\u65b9\u6cd5\u3002 [&hellip;]","protected":false},"author":3,"featured_media":1085363,"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\/1085358"}],"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=1085358"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085358\/revisions"}],"predecessor-version":[{"id":1085366,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1085358\/revisions\/1085366"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1085363"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1085358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1085358"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1085358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}