{"id":973443,"date":"2024-12-27T05:56:58","date_gmt":"2024-12-26T21:56:58","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/973443.html"},"modified":"2024-12-27T05:57:00","modified_gmt":"2024-12-26T21:57:00","slug":"python%e5%a6%82%e4%bd%95%e8%b7%b3%e5%87%ba%e5%a4%9a%e9%87%8d%e5%be%aa%e7%8e%af","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/973443.html","title":{"rendered":"python\u5982\u4f55\u8df3\u51fa\u591a\u91cd\u5faa\u73af"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24195625\/58580666-85ab-4022-860c-42aff86d6818.webp\" alt=\"python\u5982\u4f55\u8df3\u51fa\u591a\u91cd\u5faa\u73af\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u8df3\u51fa\u591a\u91cd\u5faa\u73af\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u3001\u5b9a\u4e49\u6807\u5fd7\u53d8\u91cf\u3001\u629b\u51fa\u5f02\u5e38\u3001\u4f7f\u7528\u51fd\u6570\u548c\u8fed\u4ee3\u5668\u7b49\u65b9\u6cd5\u3002\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u7684\u65b9\u6cd5\u8f83\u4e3a\u5e38\u89c1\uff0c\u5b83\u53ef\u4ee5\u5728\u5185\u5c42\u5faa\u73af\u4e2d\u4f7f\u7528\u201cbreak\u201d\u8df3\u51fa\u5faa\u73af\uff0c\u5e76\u5728\u5916\u5c42\u5faa\u73af\u4e2d\u901a\u8fc7\u201celse\u201d\u5224\u65ad\u662f\u5426\u8df3\u51fa\u6240\u6709\u5faa\u73af\u3002<\/strong>\u5728\u591a\u91cd\u5faa\u73af\u4e2d\uff0c\u6709\u65f6\u9700\u8981\u6839\u636e\u7279\u5b9a\u6761\u4ef6\u7acb\u5373\u9000\u51fa\u6240\u6709\u5faa\u73af\u800c\u4e0d\u662f\u7ee7\u7eed\u6267\u884c\uff0c\u8fd9\u5728\u7f16\u7a0b\u4e2d\u662f\u4e00\u4e2a\u76f8\u5bf9\u5e38\u89c1\u7684\u9700\u6c42\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u4ee5\u53ca\u5b83\u4eec\u7684\u5e94\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u662f\u4e00\u79cd\u8f83\u4e3a\u4f18\u96c5\u7684\u65b9\u6cd5\u3002Python\u652f\u6301\u5728\u5faa\u73af\u8bed\u53e5\u540e\u4f7f\u7528\u201celse\u201d\u5b50\u53e5\uff0c\u8fd9\u4e2a\u5b50\u53e5\u5c06\u5728\u5faa\u73af\u6b63\u5e38\u7ed3\u675f\u65f6\u6267\u884c\uff0c\u800c\u4e0d\u662f\u901a\u8fc7\u201cbreak\u201d\u8bed\u53e5\u7ed3\u675f\u65f6\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u5916\u5c42\u5faa\u73af\u4e2d\u68c0\u6d4b\u5185\u5c42\u5faa\u73af\u662f\u5426\u901a\u8fc7\u201cbreak\u201d\u9000\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">for i in range(10):<\/p>\n<p>    for j in range(10):<\/p>\n<p>        if some_condition(i, j):<\/p>\n<p>            break<\/p>\n<p>    else:<\/p>\n<p>        continue<\/p>\n<p>    break<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u53ea\u6709\u5f53\u5185\u5c42\u5faa\u73af\u672a\u901a\u8fc7\u201cbreak\u201d\u9000\u51fa\u65f6\uff0c\u624d\u4f1a\u6267\u884c\u201celse\u201d\u540e\u7684\u201ccontinue\u201d\uff0c\u5982\u679c\u901a\u8fc7\u201cbreak\u201d\u9000\u51fa\uff0c\u5219\u76f4\u63a5\u8df3\u51fa\u5916\u5c42\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b9a\u4e49\u6807\u5fd7\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u65b9\u6cd5\u662f\u5b9a\u4e49\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\uff0c\u7528\u4e8e\u6807\u8bb0\u662f\u5426\u8df3\u51fa\u5faa\u73af\u3002\u8fd9\u79cd\u65b9\u6cd5\u76f4\u89c2\u4e14\u5bb9\u6613\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">found = False<\/p>\n<p>for i in range(10):<\/p>\n<p>    for j in range(10):<\/p>\n<p>        if some_condition(i, j):<\/p>\n<p>            found = True<\/p>\n<p>            break<\/p>\n<p>    if found:<\/p>\n<p>        break<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u53d8\u91cf\u201cfound\u201d\u7528\u4e8e\u6307\u793a\u662f\u5426\u5df2\u7ecf\u627e\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5143\u7d20\uff0c\u5e76\u5728\u5916\u5c42\u5faa\u73af\u4e2d\u8fdb\u884c\u68c0\u67e5\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u629b\u51fa\u5f02\u5e38<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5f02\u5e38\u6765\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u662f\u4e00\u79cd\u4e0d\u592a\u5e38\u89c1\u4f46\u6709\u6548\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u81ea\u5b9a\u4e49\u5f02\u5e38\uff0c\u53ef\u4ee5\u5728\u6ee1\u8db3\u6761\u4ef6\u65f6\u629b\u51fa\u5f02\u5e38\uff0c\u5e76\u5728\u5916\u5c42\u6355\u83b7\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class BreakLoop(Exception):<\/p>\n<p>    pass<\/p>\n<p>try:<\/p>\n<p>    for i in range(10):<\/p>\n<p>        for j in range(10):<\/p>\n<p>            if some_condition(i, j):<\/p>\n<p>                r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se BreakLoop<\/p>\n<p>except BreakLoop:<\/p>\n<p>    pass<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u7acb\u5373\u9000\u51fa\u6240\u6709\u5d4c\u5957\u7684\u5faa\u73af\uff0c\u4f46\u7f3a\u70b9\u662f\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u8f83\u5dee\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u5c06\u5faa\u73af\u903b\u8f91\u5c01\u88c5\u5728\u4e00\u4e2a\u51fd\u6570\u4e2d\uff0c\u5e76\u5728\u9700\u8981\u65f6\u901a\u8fc7\u201creturn\u201d\u8bed\u53e5\u9000\u51fa\u51fd\u6570\uff0c\u8fd9\u6837\u4e5f\u53ef\u4ee5\u8fbe\u5230\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def find_condition():<\/p>\n<p>    for i in range(10):<\/p>\n<p>        for j in range(10):<\/p>\n<p>            if some_condition(i, j):<\/p>\n<p>                return i, j<\/p>\n<p>    return None<\/p>\n<p>result = find_condition()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u4ee3\u7801\u7ed3\u6784\u6e05\u6670\uff0c\u4f46\u9700\u8981\u6ce8\u610f\u51fd\u6570\u7684\u8bbe\u8ba1\u548c\u8fd4\u56de\u503c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528\u8fed\u4ee3\u5668<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u8bb8\u591a\u5f3a\u5927\u7684\u8fed\u4ee3\u5668\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u6765\u7b80\u5316\u5faa\u73af\u64cd\u4f5c\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528\u8fed\u4ee3\u5668\u53ef\u4ee5\u907f\u514d\u591a\u91cd\u5faa\u73af\u7684\u590d\u6742\u6027\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import itertools<\/p>\n<p>for i, j in itertools.product(range(10), repeat=2):<\/p>\n<p>    if some_condition(i, j):<\/p>\n<p>        break<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6bb5\u4ee3\u7801\u4f7f\u7528\u201citertools.product\u201d\u751f\u6210\u6240\u6709\u53ef\u80fd\u7684(i, j)\u5bf9\uff0c\u7136\u540e\u5728\u627e\u5230\u6ee1\u8db3\u6761\u4ef6\u7684\u5bf9\u65f6\u9000\u51fa\u5faa\u73af\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u5177\u4f53\u5e94\u7528\u573a\u666f\u5206\u6790<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u641c\u7d22\u95ee\u9898<\/strong>\uff1a\u5728\u641c\u7d22\u95ee\u9898\u4e2d\uff0c\u901a\u5e38\u9700\u8981\u5728\u627e\u5230\u76ee\u6807\u5143\u7d20\u540e\u7acb\u5373\u9000\u51fa\u6240\u6709\u5faa\u73af\u3002\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u6216\u5f02\u5e38\u90fd\u53ef\u4ee5\u6709\u6548\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4f18\u5316\u7b97\u6cd5<\/strong>\uff1a\u5728\u67d0\u4e9b\u4f18\u5316\u7b97\u6cd5\u4e2d\uff0c\u5f53\u8fbe\u5230\u67d0\u4e2a\u9608\u503c\u65f6\u9700\u8981\u7acb\u5373\u505c\u6b62\u8fed\u4ee3\u3002\u6b64\u65f6\uff0c\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u7684\u65b9\u6cd5\u8f83\u4e3a\u5408\u9002\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6570\u636e\u5904\u7406<\/strong>\uff1a\u5728\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u5728\u6ee1\u8db3\u67d0\u4e9b\u6761\u4ef6\u540e\u505c\u6b62\u8fdb\u4e00\u6b65\u5904\u7406\u3002\u4f7f\u7528\u8fed\u4ee3\u5668\u548c\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u7b80\u5316\u4ee3\u7801\u548c\u63d0\u9ad8\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u6027\u80fd\u4e0e\u53ef\u8bfb\u6027\u8003\u8651<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u7684\u65b9\u6cd5\u65f6\uff0c\u9700\u8981\u8003\u8651\u4ee3\u7801\u7684\u6027\u80fd\u548c\u53ef\u8bfb\u6027\u3002\u4e00\u822c\u6765\u8bf4\uff0c\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u7684\u65b9\u6cd5\u8f83\u4e3a\u4f18\u96c5\uff0c\u4ee3\u7801\u53ef\u8bfb\u6027\u597d\uff1b\u4f7f\u7528\u6807\u5fd7\u53d8\u91cf\u76f4\u89c2\u6613\u61c2\uff0c\u4f46\u53ef\u80fd\u4f1a\u4f7f\u4ee3\u7801\u7565\u663e\u5197\u957f\uff1b\u629b\u51fa\u5f02\u5e38\u5219\u9002\u7528\u4e8e\u590d\u6742\u7684\u63a7\u5236\u6d41\uff0c\u4f46\u53ef\u8bfb\u6027\u8f83\u5dee\uff1b\u4f7f\u7528\u51fd\u6570\u53ef\u4ee5\u4f7f\u4ee3\u7801\u7ed3\u6784\u66f4\u6e05\u6670\uff0c\u4f46\u9700\u8981\u8bbe\u8ba1\u5408\u7406\u7684\u8fd4\u56de\u503c\u548c\u53c2\u6570\uff1b\u4f7f\u7528\u8fed\u4ee3\u5668\u5219\u9002\u5408\u4e8e\u5904\u7406\u5927\u91cf\u6570\u636e\u548c\u7b80\u5316\u5faa\u73af\u7ed3\u6784\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u7684\u65b9\u5f0f\u591a\u79cd\u591a\u6837\uff0c\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002\u65e0\u8bba\u662f\u901a\u8fc7\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u3001\u5b9a\u4e49\u6807\u5fd7\u53d8\u91cf\u3001\u629b\u51fa\u5f02\u5e38\u3001\u4f7f\u7528\u51fd\u6570\u8fd8\u662f\u8fed\u4ee3\u5668\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u7f3a\u70b9\u3002\u4e86\u89e3\u5e76\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4e0d\u4ec5\u80fd\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\uff0c\u8fd8\u80fd\u63d0\u5347\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002\u5e0c\u671b\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u80fd\u591f\u5e2e\u52a9\u8bfb\u8005\u66f4\u597d\u5730\u7406\u89e3\u548c\u5e94\u7528\u8fd9\u4e9b\u6280\u5de7\uff0c\u5728\u5b9e\u9645\u7f16\u7a0b\u4e2d\u6e38\u5203\u6709\u4f59\u5730\u89e3\u51b3\u591a\u91cd\u5faa\u73af\u8df3\u51fa\u7684\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6709\u6548\u5730\u8df3\u51fa\u591a\u91cd\u5faa\u73af\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528<code>break<\/code>\u8bed\u53e5\u53ef\u4ee5\u8df3\u51fa\u5f53\u524d\u7684\u5faa\u73af\u3002\u5982\u679c\u60f3\u8981\u8df3\u51fa\u591a\u91cd\u5faa\u73af\uff0c\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e\u4e00\u4e2a\u6807\u5fd7\u53d8\u91cf\u6765\u5b9e\u73b0\u3002\u4e00\u65e6\u6ee1\u8db3\u7279\u5b9a\u6761\u4ef6\uff0c\u5c31\u5c06\u6807\u5fd7\u53d8\u91cf\u8bbe\u4e3a<code>True<\/code>\uff0c\u5e76\u5728\u5916\u5c42\u5faa\u73af\u4e2d\u68c0\u67e5\u8be5\u53d8\u91cf\uff0c\u4ece\u800c\u5b9e\u73b0\u8df3\u51fa\u591a\u4e2a\u5faa\u73af\u7684\u76ee\u7684\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u80fd\u5426\u4f7f\u7528\u5f02\u5e38\u6765\u8df3\u51fa\u591a\u91cd\u5faa\u73af\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f7f\u7528\u81ea\u5b9a\u4e49\u5f02\u5e38\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u6cd5\u3002\u53ef\u4ee5\u5b9a\u4e49\u4e00\u4e2a\u5f02\u5e38\u7c7b\uff0c\u5728\u5185\u5c42\u5faa\u73af\u4e2d\u629b\u51fa\u8be5\u5f02\u5e38\uff0c\u7136\u540e\u5728\u5916\u5c42\u5faa\u73af\u4e2d\u6355\u83b7\u5b83\uff0c\u4ece\u800c\u5b9e\u73b0\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u5728\u9700\u8981\u590d\u6742\u7684\u903b\u8f91\u63a7\u5236\u65f6\u4f7f\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528\u51fd\u6570\u6765\u7b80\u5316\u8df3\u51fa\u591a\u91cd\u5faa\u73af\u7684\u903b\u8f91\uff1f<\/strong><br \/>\u5c06\u591a\u91cd\u5faa\u73af\u7684\u903b\u8f91\u653e\u5165\u4e00\u4e2a\u51fd\u6570\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528<code>return<\/code>\u8bed\u53e5\u6765\u76f4\u63a5\u9000\u51fa\u5faa\u73af\u3002\u8fd9\u6837\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u6e05\u6670\u5730\u63a7\u5236\u8df3\u51fa\u903b\u8f91\uff0c\u8fd8\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u590d\u7528\u6027\u3002\u521b\u5efa\u4e00\u4e2a\u51fd\u6570\uff0c\u5e76\u5728\u5408\u9002\u7684\u6761\u4ef6\u4e0b\u8fd4\u56de\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u7ba1\u7406\u590d\u6742\u7684\u5faa\u73af\u7ed3\u6784\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u8df3\u51fa\u591a\u91cd\u5faa\u73af\uff0c\u53ef\u4ee5\u4f7f\u7528\u201cbreak\u201d\u4e0e\u201celse\u201d\u7ed3\u5408\u3001\u5b9a\u4e49\u6807\u5fd7\u53d8\u91cf\u3001\u629b\u51fa\u5f02\u5e38\u3001\u4f7f\u7528\u51fd\u6570\u548c\u8fed\u4ee3 [&hellip;]","protected":false},"author":3,"featured_media":973452,"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\/973443"}],"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=973443"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973443\/revisions"}],"predecessor-version":[{"id":973453,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/973443\/revisions\/973453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/973452"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=973443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=973443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=973443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}