{"id":971164,"date":"2024-12-27T05:32:34","date_gmt":"2024-12-26T21:32:34","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/971164.html"},"modified":"2024-12-27T05:32:37","modified_gmt":"2024-12-26T21:32:37","slug":"python%e5%a6%82%e4%bd%95%e9%81%8d%e5%8e%86%e5%88%97%e8%a1%a8%e5%85%83%e7%b4%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/971164.html","title":{"rendered":"python\u5982\u4f55\u904d\u5386\u5217\u8868\u5143\u7d20"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194138\/93258cb7-c950-41a9-ab43-a85815afe2f4.webp\" alt=\"python\u5982\u4f55\u904d\u5386\u5217\u8868\u5143\u7d20\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u904d\u5386\u5217\u8868\u5143\u7d20\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528for\u5faa\u73af\u3001while\u5faa\u73af\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001enumerate\u51fd\u6570\u7b49<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528for\u5faa\u73af\u662f\u6700\u5e38\u89c1\u548c\u6700\u7b80\u6d01\u7684\u65b9\u6cd5\u3002\u901a\u8fc7for\u5faa\u73af\uff0c\u53ef\u4ee5\u76f4\u63a5\u83b7\u53d6\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u5bf9\u5176\u8fdb\u884c\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u6570\u503c\u5217\u8868\uff0c\u5e76\u5e0c\u671b\u8ba1\u7b97\u6240\u6709\u5143\u7d20\u7684\u548c\uff0c\u53ef\u4ee5\u4f7f\u7528for\u5faa\u73af\u9010\u4e2a\u7d2f\u52a0\u6bcf\u4e2a\u5143\u7d20\u7684\u503c\u3002<strong>\u6b64\u5916\uff0cenumerate\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u83b7\u53d6\u5143\u7d20\u7684\u503c\uff0c\u8fd8\u53ef\u4ee5\u83b7\u53d6\u5176\u7d22\u5f15\uff0c\u975e\u5e38\u9002\u5408\u9700\u8981\u5143\u7d20\u4f4d\u7f6e\u7684\u573a\u666f<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528FOR\u5faa\u73af\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p>\u4f7f\u7528for\u5faa\u73af\u904d\u5386\u5217\u8868\u662fPython\u4e2d\u6700\u57fa\u672c\u4e5f\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u3002\u5b83\u7684\u8bed\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5927\u90e8\u5206\u9700\u8981\u9010\u4e2a\u8bbf\u95ee\u5217\u8868\u5143\u7d20\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>for element in my_list:<\/p>\n<p>    print(element)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>for element in my_list<\/code>\u8bed\u53e5\u4f1a\u904d\u5386<code>my_list<\/code>\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5176\u8d4b\u503c\u7ed9<code>element<\/code>\u53d8\u91cf\uff0c\u7136\u540e\u5728\u5faa\u73af\u4f53\u5185\u6253\u5370\u51fa\u6765\u3002\u8fd9\u79cd\u65b9\u5f0f\u975e\u5e38\u9002\u5408\u53ea\u9700\u8981\u8bbf\u95ee\u6bcf\u4e2a\u5143\u7d20\u800c\u4e0d\u9700\u8981\u77e5\u9053\u5176\u4f4d\u7f6e\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528WHILE\u5faa\u73af\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5982for\u5faa\u73af\u5e38\u7528\uff0c\u4f46while\u5faa\u73af\u4e5f\u53ef\u4ee5\u7528\u6765\u904d\u5386\u5217\u8868\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u66f4\u590d\u6742\u7684\u63a7\u5236\u6761\u4ef6\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>index = 0<\/p>\n<p>while index &lt; len(my_list):<\/p>\n<p>    print(my_list[index])<\/p>\n<p>    index += 1<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528\u4e00\u4e2a<code>index<\/code>\u53d8\u91cf\u6765\u8ddf\u8e2a\u5f53\u524d\u8bbf\u95ee\u7684\u5217\u8868\u4f4d\u7f6e\u3002<code>while index &lt; len(my_list)<\/code>\u8bed\u53e5\u4fdd\u8bc1\u5faa\u73af\u4f1a\u7ee7\u7eed\uff0c\u76f4\u5230<code>index<\/code>\u8fbe\u5230\u5217\u8868\u7684\u957f\u5ea6\u3002\u6bcf\u6b21\u5faa\u73af\u7ed3\u675f\u65f6\uff0c<code>index<\/code>\u90fd\u4f1a\u589e\u52a01\uff0c\u6307\u5411\u4e0b\u4e00\u4e2a\u5143\u7d20\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5728\u9700\u8981\u5728\u904d\u5386\u8fc7\u7a0b\u4e2d\u52a8\u6001\u6539\u53d8\u5217\u8868\u65f6\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528ENUMERATE\u51fd\u6570\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p><code>enumerate<\/code>\u51fd\u6570\u662fPython\u63d0\u4f9b\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u5b83\u4e3a\u904d\u5386\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7d22\u5f15\u548c\u5bf9\u5e94\u503c\u7684\u8fed\u4ee3\u5668\uff0c\u662f\u5904\u7406\u7d22\u5f15\u548c\u5143\u7d20\u5bf9\u7684\u7406\u60f3\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [&#39;a&#39;, &#39;b&#39;, &#39;c&#39;, &#39;d&#39;]<\/p>\n<p>for index, value in enumerate(my_list):<\/p>\n<p>    print(f&quot;Index: {index}, Value: {value}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>enumerate(my_list)<\/code>\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u6bcf\u4e2a\u5143\u7d20\u53ca\u5176\u7d22\u5f15\u7684\u5143\u7ec4\uff0c\u4f8b\u5982<code>(0, &#39;a&#39;)<\/code>\uff0c<code>(1, &#39;b&#39;)<\/code>\u7b49\u7b49\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u540c\u65f6\u8bbf\u95ee\u5143\u7d20\u503c\u548c\u5176\u4f4d\u7f6e\u7684\u573a\u666f\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u5f3a\u5927\u7684\u8bed\u6cd5\uff0c\u7528\u4e8e\u751f\u6210\u548c\u8fc7\u6ee4\u5217\u8868\u3002\u867d\u7136\u5b83\u4e3b\u8981\u7528\u4e8e\u521b\u5efa\u65b0\u5217\u8868\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u904d\u5386\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>squared_list = [x2 for x in my_list]<\/p>\n<p>print(squared_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f<code>[x2 for x in my_list]<\/code>\u4f1a\u904d\u5386<code>my_list<\/code>\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u8ba1\u7b97\u5176\u5e73\u65b9\uff0c\u5e76\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5217\u8868<code>squared_list<\/code>\u3002\u5217\u8868\u63a8\u5bfc\u5f0f\u975e\u5e38\u9002\u5408\u9700\u8981\u5728\u904d\u5386\u65f6\u5bf9\u5143\u7d20\u8fdb\u884c\u53d8\u6362\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528MAP\u51fd\u6570\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p><code>map<\/code>\u51fd\u6570\u662fPython\u4e2d\u7684\u53e6\u4e00\u4e2a\u5185\u7f6e\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u4e00\u4e2a\u51fd\u6570\u5e94\u7528\u5230\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u4e0a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>squared_list = list(map(lambda x: x2, my_list))<\/p>\n<p>print(squared_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>map<\/code>\u51fd\u6570\u4f7f\u7528\u4e00\u4e2a<code>lambda<\/code>\u8868\u8fbe\u5f0f\u8ba1\u7b97\u6bcf\u4e2a\u5143\u7d20\u7684\u5e73\u65b9\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u8fed\u4ee3\u5668\u3002\u6211\u4eec\u901a\u8fc7<code>list()<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\u3002<code>map<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u4e00\u79cd\u51fd\u6570\u5f0f\u7f16\u7a0b\u98ce\u683c\u7684\u904d\u5386\u65b9\u6cd5\uff0c\u9002\u5408\u9700\u8981\u5bf9\u6bcf\u4e2a\u5143\u7d20\u5e94\u7528\u76f8\u540c\u64cd\u4f5c\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528ITER\u51fd\u6570\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p><code>iter<\/code>\u51fd\u6570\u7528\u4e8e\u521b\u5efa\u4e00\u4e2a\u8fed\u4ee3\u5668\u5bf9\u8c61\uff0c\u53ef\u4ee5\u901a\u8fc7<code>next<\/code>\u51fd\u6570\u9010\u4e2a\u8bbf\u95ee\u5217\u8868\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]<\/p>\n<p>my_iter = iter(my_list)<\/p>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        element = next(my_iter)<\/p>\n<p>        print(element)<\/p>\n<p>except StopIteration:<\/p>\n<p>    pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528<code>iter(my_list)<\/code>\u521b\u5efa\u4e00\u4e2a\u8fed\u4ee3\u5668<code>my_iter<\/code>\uff0c\u7136\u540e\u5728<code>while<\/code>\u5faa\u73af\u4e2d\u901a\u8fc7<code>next(my_iter)<\/code>\u9010\u4e2a\u83b7\u53d6\u5143\u7d20\u3002\u5f53\u8fed\u4ee3\u5668\u8017\u5c3d\u65f6\uff0c<code>next<\/code>\u51fd\u6570\u4f1a\u629b\u51fa<code>StopIteration<\/code>\u5f02\u5e38\uff0c\u6211\u4eec\u5728<code>except<\/code>\u5757\u4e2d\u6355\u83b7\u5b83\u4ee5\u7ed3\u675f\u5faa\u73af\u3002\u4f7f\u7528<code>iter<\/code>\u548c<code>next<\/code>\u63d0\u4f9b\u4e86\u4e00\u79cd\u624b\u52a8\u63a7\u5236\u904d\u5386\u8fc7\u7a0b\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528\u9012\u5f52\u904d\u5386\u5217\u8868<\/p>\n<\/p>\n<p><p>\u9012\u5f52\u662f\u4e00\u79cd\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u4ee5\u66ff\u4ee3\u5faa\u73af\u7684\u65b9\u6cd5\uff0c\u7279\u522b\u662f\u5728\u5904\u7406\u5d4c\u5957\u5217\u8868\u65f6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def recursive_traverse(lst):<\/p>\n<p>    if lst:<\/p>\n<p>        print(lst[0])<\/p>\n<p>        recursive_traverse(lst[1:])<\/p>\n<p>my_list = [1, 2, 3, 4, 5]<\/p>\n<p>recursive_traverse(my_list)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>recursive_traverse<\/code>\u51fd\u6570\u4f1a\u6253\u5370\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u5e76\u901a\u8fc7\u9012\u5f52\u8c03\u7528\u81ea\u8eab\u7ee7\u7eed\u5904\u7406\u5269\u4e0b\u7684\u5143\u7d20\u3002\u9012\u5f52\u65b9\u6cd5\u9002\u5408\u5904\u7406\u6811\u5f62\u6216\u5d4c\u5957\u7ed3\u6784\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u904d\u5386\u5217\u8868\u7684\u5de5\u5177\u548c\u6280\u672f\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\uff0c\u4f8b\u5982\u9700\u8981\u7d22\u5f15\u3001\u9700\u8981\u5bf9\u5143\u7d20\u8fdb\u884c\u53d8\u6362\u6216\u9700\u8981\u5904\u7406\u5d4c\u5957\u7ed3\u6784\u7b49\u3002\u7406\u89e3\u8fd9\u4e9b\u65b9\u6cd5\u7684\u5dee\u5f02\u548c\u9002\u7528\u573a\u666f\u5c06\u5e2e\u52a9\u4f60\u66f4\u6709\u6548\u5730\u7f16\u5199Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528\u5faa\u73af\u904d\u5386\u5217\u8868\u5143\u7d20\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u3002\u901a\u8fc7<code>for<\/code>\u5faa\u73af\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8bbf\u95ee\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5]\nfor item in my_list:\n    print(item)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4ec5\u76f4\u89c2\uff0c\u800c\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u9002\u5408\u521d\u5b66\u8005\u548c\u6709\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\u3002<\/p>\n<p><strong>\u904d\u5386\u5217\u8868\u65f6\u5982\u4f55\u83b7\u53d6\u5143\u7d20\u7684\u7d22\u5f15\uff1f<\/strong><br \/>\u8981\u540c\u65f6\u83b7\u53d6\u5143\u7d20\u53ca\u5176\u7d22\u5f15\uff0c\u53ef\u4ee5\u4f7f\u7528<code>enumerate()<\/code>\u51fd\u6570\u3002\u8fd9\u662f\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u7d22\u5f15\u548c\u5143\u7d20\u7684\u5143\u7ec4\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [&#39;a&#39;, &#39;b&#39;, &#39;c&#39;]\nfor index, value in enumerate(my_list):\n    print(f&#39;Index: {index}, Value: {value}&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u5728\u9700\u8981\u77e5\u9053\u5143\u7d20\u4f4d\u7f6e\u65f6\u7279\u522b\u6709\u7528\u3002<\/p>\n<p><strong>\u5728\u904d\u5386\u5217\u8868\u65f6\u5982\u4f55\u8fdb\u884c\u6761\u4ef6\u7b5b\u9009\uff1f<\/strong><br \/>\u5982\u679c\u53ea\u60f3\u904d\u5386\u7b26\u5408\u7279\u5b9a\u6761\u4ef6\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u7ed3\u5408<code>if<\/code>\u8bed\u53e5\u4f7f\u7528<code>for<\/code>\u5faa\u73af\u3002\u6bd4\u5982\uff0c\u82e5\u8981\u904d\u5386\u5e76\u6253\u5370\u51fa\u5217\u8868\u4e2d\u6240\u6709\u7684\u5076\u6570\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a  <\/p>\n<pre><code class=\"language-python\">my_list = [1, 2, 3, 4, 5, 6]\nfor item in my_list:\n    if item % 2 == 0:\n        print(item)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u5f97\u5728\u904d\u5386\u65f6\u7b5b\u9009\u51fa\u6240\u9700\u5143\u7d20\u53d8\u5f97\u7b80\u5355\u9ad8\u6548\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u904d\u5386\u5217\u8868\u5143\u7d20\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528for\u5faa\u73af\u3001while\u5faa\u73af\u3001\u5217\u8868\u63a8\u5bfc\u5f0f\u3001enumerate [&hellip;]","protected":false},"author":3,"featured_media":971174,"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\/971164"}],"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=971164"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971164\/revisions"}],"predecessor-version":[{"id":971177,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/971164\/revisions\/971177"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/971174"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=971164"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=971164"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=971164"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}