{"id":1034808,"date":"2024-12-31T11:53:17","date_gmt":"2024-12-31T03:53:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1034808.html"},"modified":"2024-12-31T11:53:20","modified_gmt":"2024-12-31T03:53:20","slug":"python%e5%a6%82%e4%bd%95%e6%a0%b9%e6%8d%ae%e5%ad%97%e5%85%b8%e4%b8%adkey%e8%bf%9b%e8%a1%8c%e6%8e%92%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1034808.html","title":{"rendered":"python\u5982\u4f55\u6839\u636e\u5b57\u5178\u4e2dkey\u8fdb\u884c\u6392\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/f332bfde-b74b-4378-a2c6-749eec38003f.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u6839\u636e\u5b57\u5178\u4e2dkey\u8fdb\u884c\u6392\u5e8f\" \/><\/p>\n<p><p> <strong>Python\u6839\u636e\u5b57\u5178\u4e2dkey\u8fdb\u884c\u6392\u5e8f<\/strong>\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6392\u5e8f\u5b57\u5178\u7684\u5173\u952e\u6709<strong>sorted()\u51fd\u6570\u3001\u5b57\u5178\u7684items()\u65b9\u6cd5\u3001\u4f7f\u7528lambda\u51fd\u6570<\/strong>\u7b49\u3002\u4e0b\u9762\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528sorted()\u51fd\u6570<\/p>\n<\/p>\n<p><p>Python\u7684\u5185\u7f6e\u51fd\u6570sorted()\u53ef\u4ee5\u7528\u6765\u6392\u5e8f\u53ef\u8fed\u4ee3\u5bf9\u8c61\u3002\u5bf9\u4e8e\u5b57\u5178\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528sorted()\u5bf9\u5176\u952e\u8fdb\u884c\u6392\u5e8f\uff0c\u7136\u540e\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528sorted()\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = {k: my_dict[k] for k in sorted(my_dict)}<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u5b57\u5178\u63a8\u5bfc\u5f0f\u548csorted()\u51fd\u6570\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u4e86\u6392\u5e8f\u3002sorted()\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u6392\u5e8f\u540e\u7684\u5217\u8868\uff0c\u7136\u540e\u6211\u4eec\u5229\u7528\u8fd9\u4e2a\u5217\u8868\u6309\u987a\u5e8f\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5b57\u5178\u7684items()\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u7684items()\u65b9\u6cd5\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u5b57\u5178\u952e\u503c\u5bf9\u7684\u89c6\u56fe\u5bf9\u8c61\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2a\u89c6\u56fe\u5bf9\u8c61\u6765\u6392\u5e8f\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528sorted()\u5bf9\u5b57\u5178\u7684items()\u8fdb\u884c\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_items = sorted(my_dict.items())<\/p>\n<h2><strong>\u5c06\u6392\u5e8f\u540e\u7684\u952e\u503c\u5bf9\u8f6c\u6362\u56de\u5b57\u5178<\/strong><\/h2>\n<p>sorted_dict = dict(sorted_items)<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528items()\u65b9\u6cd5\u83b7\u53d6\u5b57\u5178\u7684\u952e\u503c\u5bf9\uff0c\u7136\u540e\u4f7f\u7528sorted()\u51fd\u6570\u5bf9\u8fd9\u4e9b\u952e\u503c\u5bf9\u8fdb\u884c\u6392\u5e8f\u3002\u6700\u540e\uff0c\u6211\u4eec\u5c06\u6392\u5e8f\u540e\u7684\u952e\u503c\u5bf9\u8f6c\u6362\u56de\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528lambda\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u6211\u4eec\u8fd8\u53ef\u4ee5\u4f7f\u7528lambda\u51fd\u6570\u81ea\u5b9a\u4e49\u6392\u5e8f\u89c4\u5219\u3002\u867d\u7136\u5bf9\u4e8e\u5b57\u5178\u7684\u952e\u6392\u5e8f\uff0clambda\u51fd\u6570\u5e76\u4e0d\u662f\u5fc5\u987b\u7684\uff0c\u4f46\u5b83\u5728\u67d0\u4e9b\u590d\u6742\u6392\u5e8f\u573a\u666f\u4e2d\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528lambda\u51fd\u6570\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = dict(sorted(my_dict.items(), key=lambda item: item[0]))<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2alambda\u51fd\u6570\u4f5c\u4e3akey\u53c2\u6570\uff0c\u6307\u5b9a\u4e86\u6392\u5e8f\u5e94\u57fa\u4e8e\u5b57\u5178\u9879\u7684\u952e\uff08item[0]\uff09\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5ffd\u7565\u5927\u5c0f\u5199\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u5e0c\u671b\u5728\u6392\u5e8f\u65f6\u5ffd\u7565\u952e\u7684\u5927\u5c0f\u5199\uff0c\u53ef\u4ee5\u5728lambda\u51fd\u6570\u4e2d\u4f7f\u7528str.lower()\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;Apple&#39;: 4, &#39;banana&#39;: 3, &#39;Cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528lambda\u51fd\u6570\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u5ffd\u7565\u5927\u5c0f\u5199\u7684\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = dict(sorted(my_dict.items(), key=lambda item: item[0].lower()))<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86lambda\u51fd\u6570\u548cstr.lower()\u65b9\u6cd5\uff0c\u4f7f\u5f97\u6392\u5e8f\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6309\u952e\u957f\u5ea6\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u5982\u679c\u6211\u4eec\u5e0c\u671b\u6309\u952e\u7684\u957f\u5ea6\u5bf9\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\uff0c\u53ef\u4ee5\u5728lambda\u51fd\u6570\u4e2d\u4f7f\u7528len()\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528lambda\u51fd\u6570\u6309\u952e\u957f\u5ea6\u5bf9\u5b57\u5178\u8fdb\u884c\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = dict(sorted(my_dict.items(), key=lambda item: len(item[0])))<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86lambda\u51fd\u6570\u548clen()\u65b9\u6cd5\uff0c\u6839\u636e\u952e\u7684\u957f\u5ea6\u5bf9\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5012\u5e8f\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u6211\u4eec\u53ef\u80fd\u5e0c\u671b\u6309\u5012\u5e8f\uff08\u4ece\u5927\u5230\u5c0f\uff09\u6392\u5e8f\u5b57\u5178\u7684\u952e\u3002\u53ef\u4ee5\u5728sorted()\u51fd\u6570\u4e2d\u4f7f\u7528reverse\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2}<\/p>\n<h2><strong>\u4f7f\u7528sorted()\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u5012\u5e8f\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = {k: my_dict[k] for k in sorted(my_dict, reverse=True)}<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5728sorted()\u51fd\u6570\u4e2d\u4f7f\u7528reverse=True\u53c2\u6570\uff0c\u4f7f\u5f97\u6392\u5e8f\u7ed3\u679c\u4e3a\u5012\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u591a\u7ea7\u6392\u5e8f<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u590d\u6742\u573a\u666f\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u8fdb\u884c\u591a\u7ea7\u6392\u5e8f\u3002\u6bd4\u5982\uff0c\u9996\u5148\u6309\u952e\u7684\u957f\u5ea6\u6392\u5e8f\uff0c\u5982\u679c\u957f\u5ea6\u76f8\u540c\uff0c\u5219\u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5e8f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u5b57\u5178<\/p>\n<p>my_dict = {&#39;apple&#39;: 4, &#39;banana&#39;: 3, &#39;cherry&#39;: 5, &#39;date&#39;: 2, &#39;apricot&#39;: 1}<\/p>\n<h2><strong>\u4f7f\u7528lambda\u51fd\u6570\u8fdb\u884c\u591a\u7ea7\u6392\u5e8f<\/strong><\/h2>\n<p>sorted_dict = dict(sorted(my_dict.items(), key=lambda item: (len(item[0]), item[0])))<\/p>\n<p>print(sorted_dict)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2atuple\u4f5c\u4e3akey\u53c2\u6570\uff0c\u9996\u5148\u6309\u952e\u7684\u957f\u5ea6\u6392\u5e8f\uff0c\u5982\u679c\u957f\u5ea6\u76f8\u540c\uff0c\u518d\u6309\u5b57\u6bcd\u987a\u5e8f\u6392\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u4e3a\u6839\u636e\u5b57\u5178\u952e\u6392\u5e8f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u548c\u65b9\u6cd5\u3002<strong>\u4f7f\u7528sorted()\u51fd\u6570\u3001\u5b57\u5178\u7684items()\u65b9\u6cd5\u3001lambda\u51fd\u6570<\/strong>\u7b49\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5bf9\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\u3002\u901a\u8fc7\u7ed3\u5408\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9e\u73b0\u51e0\u4e4e\u4efb\u4f55\u590d\u6742\u7684\u6392\u5e8f\u9700\u6c42\u3002\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u5c06\u6781\u5927\u5730\u63d0\u5347\u6211\u4eec\u5904\u7406\u5b57\u5178\u6570\u636e\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5bf9\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b57\u5178\u672c\u8eab\u662f\u65e0\u5e8f\u7684\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528<code>sorted()<\/code>\u51fd\u6570\u5bf9\u5b57\u5178\u7684\u952e\u6216\u503c\u8fdb\u884c\u6392\u5e8f\u3002\u53ef\u4ee5\u901a\u8fc7<code>key<\/code>\u53c2\u6570\u6307\u5b9a\u6392\u5e8f\u7684\u4f9d\u636e\u3002\u4f8b\u5982\uff0c<code>sorted(my_dict.keys())<\/code>\u5c06\u8fd4\u56de\u6309\u952e\u6392\u5e8f\u7684\u5217\u8868\uff0c\u800c<code>sorted(my_dict.items(), key=lambda item: item[1])<\/code>\u53ef\u4ee5\u6839\u636e\u503c\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u5bf9\u5b57\u5178\u7684\u952e\u8fdb\u884c\u964d\u5e8f\u6392\u5e8f\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>reverse=True<\/code>\u53c2\u6570\u6765\u5b9e\u73b0\u964d\u5e8f\u6392\u5e8f\u3002\u4f8b\u5982\uff0c<code>sorted(my_dict.keys(), reverse=True)<\/code>\u5c06\u8fd4\u56de\u6309\u952e\u7684\u964d\u5e8f\u6392\u5217\u5217\u8868\u3002\u8fd9\u6837\u53ef\u4ee5\u65b9\u4fbf\u5730\u83b7\u53d6\u6700\u5927\u7684\u952e\u6216\u503c\u3002<\/p>\n<p><strong>\u5b57\u5178\u6392\u5e8f\u540e\u5982\u4f55\u4fdd\u7559\u539f\u59cb\u5b57\u5178\u7684\u7ed3\u6784\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>collections.OrderedDict<\/code>\u6765\u4fdd\u7559\u5b57\u5178\u7684\u6392\u5e8f\u7ed3\u6784\u3002\u9996\u5148\u5c06\u5b57\u5178\u6309\u952e\u6216\u503c\u6392\u5e8f\uff0c\u7136\u540e\u5c06\u6392\u5e8f\u7ed3\u679c\u4f20\u9012\u7ed9<code>OrderedDict<\/code>\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">from collections import OrderedDict  \nsorted_dict = OrderedDict(sorted(my_dict.items()))\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u5f97\u5230\u4e00\u4e2a\u6709\u5e8f\u5b57\u5178\uff0c\u4fdd\u6301\u6392\u5e8f\u540e\u7684\u7ed3\u679c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5bf9\u5b57\u5178\u4e2d\u7684\u5d4c\u5957\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\uff1f<\/strong><br \/>\u5904\u7406\u5d4c\u5957\u5b57\u5178\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u9012\u5f52\u7684\u65b9\u6cd5\u6765\u5bf9\u5185\u90e8\u5b57\u5178\u8fdb\u884c\u6392\u5e8f\u3002\u9996\u5148\u904d\u5386\u5916\u5c42\u5b57\u5178\uff0c\u5bf9\u6bcf\u4e2a\u952e\u5bf9\u5e94\u7684\u503c\uff08\u5982\u679c\u662f\u5b57\u5178\uff09\u8fdb\u884c\u6392\u5e8f\u3002\u53ef\u4ee5\u53c2\u8003\u4ee5\u4e0b\u4ee3\u7801\u793a\u4f8b\uff1a  <\/p>\n<pre><code class=\"language-python\">def sort_nested_dict(d):  \n    return {k: sort_nested_dict(v) if isinstance(v, dict) else v for k, v in sorted(d.items())}\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u5c42\u7ea7\u7684\u5b57\u5178\u90fd\u6309\u7167\u952e\u7684\u987a\u5e8f\u8fdb\u884c\u6392\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6839\u636e\u5b57\u5178\u4e2dkey\u8fdb\u884c\u6392\u5e8f\u7684\u65b9\u5f0f\u6709\u5f88\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6392\u5e8f\u5b57\u5178\u7684\u5173\u952e\u6709sorted [&hellip;]","protected":false},"author":3,"featured_media":1034818,"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\/1034808"}],"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=1034808"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034808\/revisions"}],"predecessor-version":[{"id":1034821,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1034808\/revisions\/1034821"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1034818"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1034808"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1034808"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1034808"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}