{"id":1016595,"date":"2024-12-27T12:17:54","date_gmt":"2024-12-27T04:17:54","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1016595.html"},"modified":"2024-12-27T12:17:56","modified_gmt":"2024-12-27T04:17:56","slug":"python%e5%ad%97%e5%85%b8%e5%a6%82%e4%bd%95%e7%9b%b8%e5%8a%a0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1016595.html","title":{"rendered":"python+\u5b57\u5178\u5982\u4f55\u76f8\u52a0"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100104\/ac9c57f5-af71-4ee7-b31a-dfff0fdd7849.webp\" alt=\"python+\u5b57\u5178\u5982\u4f55\u76f8\u52a0\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5b57\u5178\u76f8\u52a0\u53ef\u4ee5\u901a\u8fc7\u5408\u5e76\u5b57\u5178\u3001\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u3001\u5b57\u5178\u63a8\u5bfc\u5f0f\u7b49\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u66f4\u65b0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\uff0c\u5c06\u4e24\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u5408\u5e76\u3002\u5728\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u952e\u503c\u5bf9\u7684\u51b2\u7a81\u95ee\u9898\u3002\u5982\u679c\u4e24\u4e2a\u5b57\u5178\u4e2d\u5b58\u5728\u76f8\u540c\u7684\u952e\uff0c\u540e\u9762\u7684\u5b57\u5178\u4f1a\u8986\u76d6\u524d\u9762\u7684\u5b57\u5178\u7684\u952e\u503c\u5bf9\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u5408\u5e76\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u662f\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002<code>update()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9\u66f4\u65b0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\uff0c\u539f\u6709\u5b57\u5178\u4e2d\u7684\u952e\u503c\u5bf9\u4f1a\u88ab\u4fdd\u7559\u6216\u66f4\u65b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>dict1.update(dict2)<\/p>\n<p>print(dict1)  # \u8f93\u51fa: {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>dict2<\/code>\u4e2d\u7684\u952e\u503c\u5bf9\u88ab\u5408\u5e76\u5230<code>dict1<\/code>\u4e2d\uff0c\u952e<code>&#39;b&#39;<\/code>\u7684\u503c\u88ab\u66f4\u65b0\u4e3a<code>3<\/code>\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528<code><\/code>\u8fd0\u7b97\u7b26\u5408\u5e76\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u5728Python 3.5\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code><\/code>\u8fd0\u7b97\u7b26\u5408\u5e76\u591a\u4e2a\u5b57\u5178\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\uff0c\u5305\u542b\u6240\u6709\u53c2\u4e0e\u5408\u5e76\u7684\u5b57\u5178\u7684\u952e\u503c\u5bf9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>combined_dict = {&lt;strong&gt;dict1, &lt;\/strong&gt;dict2}<\/p>\n<p>print(combined_dict)  # \u8f93\u51fa: {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0e<code>update()<\/code>\u65b9\u6cd5\u7684\u6548\u679c\u7c7b\u4f3c\uff0c\u4f46<code><\/code>\u8fd0\u7b97\u7b26\u4f1a\u521b\u5efa\u4e00\u4e2a\u65b0\u5b57\u5178\uff0c\u800c\u4e0d\u662f\u4fee\u6539\u539f\u6709\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u5408\u5e76\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u5b57\u5178\u63a8\u5bfc\u5f0f\u662f\u4e00\u79cd\u521b\u5efa\u5b57\u5178\u7684\u4fbf\u6377\u65b9\u6cd5\uff0c\u5b83\u5141\u8bb8\u6211\u4eec\u901a\u8fc7\u6307\u5b9a\u7684\u89c4\u5219\u6765\u751f\u6210\u5b57\u5178\u3002\u5728\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u5b57\u5178\u63a8\u5bfc\u5f0f\u53ef\u4ee5\u7528\u4e8e\u540c\u65f6\u904d\u5386\u591a\u4e2a\u5b57\u5178\uff0c\u5e76\u5c06\u5b83\u4eec\u7684\u952e\u503c\u5bf9\u5408\u5e76\u5230\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>combined_dict = {k: v for d in [dict1, dict2] for k, v in d.items()}<\/p>\n<p>print(combined_dict)  # \u8f93\u51fa: {&#39;a&#39;: 1, &#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5b57\u5178\u63a8\u5bfc\u5f0f\u904d\u5386<code>dict1<\/code>\u548c<code>dict2<\/code>\uff0c\u5e76\u5c06\u5b83\u4eec\u7684\u952e\u503c\u5bf9\u5408\u5e76\u5230<code>combined_dict<\/code>\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528<code>collections.Ch<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>nMap<\/code>\u5408\u5e76\u5b57\u5178<\/p>\n<\/p>\n<p><p><code>collections.ChainMap<\/code>\u662fPython\u6807\u51c6\u5e93\u4e2d\u7684\u4e00\u4e2a\u7c7b\uff0c\u5b83\u53ef\u4ee5\u7528\u4e8e\u5c06\u591a\u4e2a\u5b57\u5178\u5408\u5e76\u4e3a\u4e00\u4e2a\u89c6\u56fe\u3002\u5728\u8bbf\u95ee\u952e\u503c\u5bf9\u65f6\uff0c<code>ChainMap<\/code>\u4f1a\u6309\u987a\u5e8f\u67e5\u627e\u6bcf\u4e2a\u5b57\u5178\uff0c\u76f4\u5230\u627e\u5230\u5bf9\u5e94\u7684\u952e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from collections import ChainMap<\/p>\n<p>dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>combined_dict = ChainMap(dict1, dict2)<\/p>\n<p>print(combined_dict[&#39;a&#39;])  # \u8f93\u51fa: 1<\/p>\n<p>print(combined_dict[&#39;b&#39;])  # \u8f93\u51fa: 2<\/p>\n<p>print(combined_dict[&#39;c&#39;])  # \u8f93\u51fa: 4<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c<code>ChainMap<\/code>\u5e76\u4e0d\u4f1a\u771f\u6b63\u5408\u5e76\u5b57\u5178\uff0c\u5b83\u53ea\u662f\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7edf\u4e00\u8bbf\u95ee\u591a\u4e2a\u5b57\u5178\u7684\u89c6\u56fe\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u5faa\u73af\u624b\u52a8\u5408\u5e76\u5b57\u5178<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5bf9\u5b57\u5178\u8fdb\u884c\u66f4\u590d\u6742\u7684\u5408\u5e76\u903b\u8f91\uff0c\u6bd4\u5982\u5904\u7406\u952e\u51b2\u7a81\u65f6\u8fdb\u884c\u7279\u5b9a\u7684\u8ba1\u7b97\u3002\u6b64\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u624b\u52a8\u5408\u5e76\u5b57\u5178\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">dict1 = {&#39;a&#39;: 1, &#39;b&#39;: 2}<\/p>\n<p>dict2 = {&#39;b&#39;: 3, &#39;c&#39;: 4}<\/p>\n<p>combined_dict = dict1.copy()<\/p>\n<p>for k, v in dict2.items():<\/p>\n<p>    if k in combined_dict:<\/p>\n<p>        combined_dict[k] += v  # \u5bf9\u4e8e\u51b2\u7a81\u7684\u952e\u8fdb\u884c\u503c\u7684\u7d2f\u52a0<\/p>\n<p>    else:<\/p>\n<p>        combined_dict[k] = v<\/p>\n<p>print(combined_dict)  # \u8f93\u51fa: {&#39;a&#39;: 1, &#39;b&#39;: 5, &#39;c&#39;: 4}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5bf9\u4e8e\u5b58\u5728\u51b2\u7a81\u7684\u952e<code>&#39;b&#39;<\/code>\uff0c\u6211\u4eec\u9009\u62e9\u5c06\u5b83\u4eec\u7684\u503c\u76f8\u52a0\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u952e\u51b2\u7a81<\/strong>\uff1a\u5982\u679c\u591a\u4e2a\u5b57\u5178\u4e2d\u5b58\u5728\u76f8\u540c\u7684\u952e\uff0c\u5408\u5e76\u65f6\u9700\u8981\u51b3\u5b9a\u5982\u4f55\u5904\u7406\u51b2\u7a81\u3002\u53ef\u4ee5\u9009\u62e9\u8986\u76d6\u3001\u7d2f\u52a0\u6216\u5e94\u7528\u5176\u4ed6\u81ea\u5b9a\u4e49\u903b\u8f91\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6027\u80fd\u8003\u8651<\/strong>\uff1a\u5982\u679c\u5b57\u5178\u8f83\u5927\uff0c\u4e14\u9700\u8981\u9891\u7e41\u5408\u5e76\uff0c\u6ce8\u610f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<code>update()<\/code>\u65b9\u6cd5\u901a\u5e38\u8f83\u5feb\uff0c\u4f46\u4f1a\u4fee\u6539\u539f\u6709\u5b57\u5178\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>Python\u7248\u672c<\/strong>\uff1a\u67d0\u4e9b\u65b9\u6cd5\uff08\u5982<code><\/code>\u8fd0\u7b97\u7b26\uff09\u4ec5\u9002\u7528\u4e8ePython 3.5\u53ca\u4ee5\u4e0a\u7248\u672c\u3002\u5728\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\u524d\uff0c\u8bf7\u786e\u4fdd\u60a8\u7684Python\u7248\u672c\u652f\u6301\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5408\u5e76\u5b57\u5178\u5728Python\u4e2d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u3002<code>update()<\/code>\u65b9\u6cd5\u548c<code><\/code>\u8fd0\u7b97\u7b26\u9002\u5408\u7b80\u5355\u7684\u5408\u5e76\u64cd\u4f5c\uff0c\u800c\u5b57\u5178\u63a8\u5bfc\u5f0f\u548c\u5faa\u73af\u5219\u9002\u5408\u66f4\u590d\u6742\u7684\u5408\u5e76\u903b\u8f91\u3002<code>ChainMap<\/code>\u63d0\u4f9b\u4e86\u53e6\u4e00\u79cd\u89c6\u56fe\u5408\u5e76\u5b57\u5178\u7684\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u9700\u8981\u4fdd\u6301\u539f\u5b57\u5178\u4e0d\u53d8\u7684\u573a\u666f\u3002\u5728\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u7efc\u5408\u8003\u8651\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u3001\u6027\u80fd\u548cPython\u7248\u672c\u7684\u517c\u5bb9\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\u5408\u5e76\u4e24\u4e2a\u5b57\u5178\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u5c06\u4e00\u4e2a\u5b57\u5178\u7684\u952e\u503c\u5bf9\u6dfb\u52a0\u5230\u53e6\u4e00\u4e2a\u5b57\u5178\u4e2d\u3002\u6b64\u5916\uff0cPython 3.5\u53ca\u4ee5\u4e0a\u7248\u672c\u652f\u6301\u4f7f\u7528<code>{&lt;strong&gt;dict1, &lt;\/strong&gt;dict2}<\/code>\u8bed\u6cd5\uff0c\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u5178\uff0c\u5305\u542b\u4e24\u4e2a\u5b57\u5178\u7684\u6240\u6709\u952e\u503c\u5bf9\u3002<\/p>\n<p><strong>\u5982\u679c\u4e24\u4e2a\u5b57\u5178\u6709\u76f8\u540c\u7684\u952e\uff0c\u4f1a\u53d1\u751f\u4ec0\u4e48\uff1f<\/strong><br \/>\u5728\u5408\u5e76\u5b57\u5178\u65f6\uff0c\u5982\u679c\u4e24\u4e2a\u5b57\u5178\u4e2d\u5b58\u5728\u76f8\u540c\u7684\u952e\uff0c\u540e\u5408\u5e76\u7684\u5b57\u5178\u4e2d\u7684\u503c\u5c06\u8986\u76d6\u5148\u5408\u5e76\u7684\u5b57\u5178\u4e2d\u7684\u503c\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>update()<\/code>\u65b9\u6cd5\u65f6\uff0c\u5982\u679c<code>dict1<\/code>\u548c<code>dict2<\/code>\u90fd\u6709\u952e<code>&#39;a&#39;<\/code>\uff0c\u800c<code>dict2<\/code>\u4e2d\u7684<code>&#39;a&#39;<\/code>\u7684\u503c\u662f<code>2<\/code>\uff0c\u5408\u5e76\u540e\uff0c<code>&#39;a&#39;<\/code>\u7684\u503c\u5c06\u4f1a\u662f<code>2<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u5b57\u5178\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\uff1f<\/strong><br \/>Python\u7684\u5b57\u5178\u672c\u8eab\u4e0d\u652f\u6301\u76f4\u63a5\u8fdb\u884c\u6570\u5b66\u8fd0\u7b97\uff0c\u4f46\u53ef\u4ee5\u901a\u8fc7\u63d0\u53d6\u5b57\u5178\u4e2d\u7684\u503c\uff0c\u8fdb\u884c\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u6216\u5faa\u73af\u904d\u5386\u5b57\u5178\u4e2d\u7684\u503c\u8fdb\u884c\u52a0\u6cd5\u3001\u51cf\u6cd5\u7b49\u8fd0\u7b97\u3002\u4e3a\u4e86\u5b9e\u73b0\u5bf9\u5b57\u5178\u503c\u7684\u52a0\u6cd5\uff0c\u53ef\u4ee5\u904d\u5386\u4e24\u4e2a\u5b57\u5178\uff0c\u9010\u4e00\u76f8\u52a0\u76f8\u540c\u952e\u7684\u503c\uff0c\u5e76\u5c06\u7ed3\u679c\u5b58\u5165\u65b0\u5b57\u5178\u4e2d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5b57\u5178\u76f8\u52a0\u53ef\u4ee5\u901a\u8fc7\u5408\u5e76\u5b57\u5178\u3001\u4f7f\u7528update()\u65b9\u6cd5\u3001\u5b57\u5178\u63a8\u5bfc\u5f0f\u7b49\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u89c1\u7684 [&hellip;]","protected":false},"author":3,"featured_media":1016603,"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\/1016595"}],"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=1016595"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016595\/revisions"}],"predecessor-version":[{"id":1016604,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1016595\/revisions\/1016604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1016603"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1016595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1016595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1016595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}