{"id":1097447,"date":"2025-01-08T15:11:59","date_gmt":"2025-01-08T07:11:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1097447.html"},"modified":"2025-01-08T15:12:01","modified_gmt":"2025-01-08T07:12:01","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a4%e6%96%ad-%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%a4%a7%e5%b0%8f-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1097447.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5224\u65ad \u5b57\u7b26\u4e32\u5927\u5c0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24212224\/4dc05f5a-acf8-4025-9e62-ee5ddd4b56c6.webp\" alt=\"python\u4e2d\u5982\u4f55\u5224\u65ad \u5b57\u7b26\u4e32\u5927\u5c0f\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u5224\u65ad\u5b57\u7b26\u4e32\u5927\u5c0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c<strong>\u53ef\u4ee5\u4f7f\u7528\u8fd0\u7b97\u7b26\u6bd4\u8f83\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49<\/strong>\u3002\u6700\u5e38\u7528\u548c\u76f4\u63a5\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u8fd0\u7b97\u7b26\u8fdb\u884c\u6bd4\u8f83\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u573a\u666f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u5c55\u5f00\u8fd9\u79cd\u65b9\u6cd5\uff0c\u5e76\u4ecb\u7ecd\u5176\u4ed6\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u8fd0\u7b97\u7b26\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5e38\u89c1\u7684\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08\u5982 <code>&lt;<\/code>, <code>&lt;=<\/code>, <code>&gt;<\/code>, <code>&gt;=<\/code>, <code>==<\/code>, <code>!=<\/code> \u7b49\uff09\u6765\u6bd4\u8f83\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u3002\u8fd9\u4e9b\u8fd0\u7b97\u7b26\u662f\u57fa\u4e8e\u5b57\u7b26\u4e32\u4e2d\u5b57\u7b26\u7684Unicode\u7801\u70b9\uff08ASCII\u7801\uff09\u8fdb\u884c\u6bd4\u8f83\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;apple&quot;<\/p>\n<p>str2 = &quot;banana&quot;<\/p>\n<p>if str1 &lt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>elif str1 &gt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0cPython\u4f1a\u6bd4\u8f83\u5b57\u7b26\u4e32\u4e2d\u6bcf\u4e2a\u5b57\u7b26\u7684Unicode\u7801\u70b9\uff0c\u76f4\u5230\u627e\u5230\u7b2c\u4e00\u4e2a\u4e0d\u540c\u7684\u5b57\u7b26\u4e3a\u6b62\u3002\u6bd4\u5982\uff0c&quot;apple&quot; \u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26 &#39;a&#39; \u7684Unicode\u7801\u70b9\u5c0f\u4e8e &quot;banana&quot; \u7684\u7b2c\u4e00\u4e2a\u5b57\u7b26 &#39;b&#39; \u7684Unicode\u7801\u70b9\uff0c\u56e0\u6b64 &quot;apple&quot; \u5c0f\u4e8e &quot;banana&quot;\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u6709\u4e9b\u5185\u7f6e\u51fd\u6570\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u5224\u65ad\u5b57\u7b26\u4e32\u5927\u5c0f\uff0c\u6bd4\u5982 <code>ord()<\/code> \u548c <code>cmp()<\/code>\uff08\u5728Python 3\u4e2d\u5df2\u79fb\u9664\uff0c\u9700\u8981\u4f7f\u7528<code>functools.cmp_to_key()<\/code>\uff09\u3002<\/p>\n<\/p>\n<p><h4>1. \u4f7f\u7528 <code>ord()<\/code> \u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>ord()<\/code> \u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u7b26\u8f6c\u6362\u4e3aUnicode\u7801\u70b9\uff0c\u53ef\u4ee5\u7528\u4e8e\u9010\u5b57\u7b26\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;apple&quot;<\/p>\n<p>str2 = &quot;banana&quot;<\/p>\n<p>def compare_strings(s1, s2):<\/p>\n<p>    for c1, c2 in zip(s1, s2):<\/p>\n<p>        if ord(c1) &lt; ord(c2):<\/p>\n<p>            return -1<\/p>\n<p>        elif ord(c1) &gt; ord(c2):<\/p>\n<p>            return 1<\/p>\n<p>    if len(s1) &lt; len(s2):<\/p>\n<p>        return -1<\/p>\n<p>    elif len(s1) &gt; len(s2):<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return 0<\/p>\n<p>result = compare_strings(str1, str2)<\/p>\n<p>if result == -1:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>elif result == 1:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u4f7f\u7528 <code>functools.cmp_to_key()<\/code><\/h4>\n<\/p>\n<p><p>\u5728Python 3\u4e2d\uff0c<code>cmp()<\/code> \u51fd\u6570\u88ab\u79fb\u9664\u4e86\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528 <code>functools.cmp_to_key()<\/code> \u6765\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import functools<\/p>\n<p>str1 = &quot;apple&quot;<\/p>\n<p>str2 = &quot;banana&quot;<\/p>\n<p>def compare_strings(s1, s2):<\/p>\n<p>    if s1 &lt; s2:<\/p>\n<p>        return -1<\/p>\n<p>    elif s1 &gt; s2:<\/p>\n<p>        return 1<\/p>\n<p>    else:<\/p>\n<p>        return 0<\/p>\n<p>key_func = functools.cmp_to_key(compare_strings)<\/p>\n<p>sorted_strings = sorted([str1, str2], key=key_func)<\/p>\n<p>print(f&quot;Sorted strings: {sorted_strings}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u901a\u5e38\u7528\u4e8e\u5b57\u7b26\u4e32\u641c\u7d22\u548c\u5339\u914d\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u6bd4\u8f83\u7279\u5b9a\u6a21\u5f0f\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>pattern = re.compile(r&#39;^[a-zA-Z]+$&#39;)<\/p>\n<p>str1 = &quot;apple&quot;<\/p>\n<p>str2 = &quot;banana&quot;<\/p>\n<p>if pattern.match(str1) and pattern.match(str2):<\/p>\n<p>    if str1 &lt; str2:<\/p>\n<p>        print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>    elif str1 &gt; str2:<\/p>\n<p>        print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>    else:<\/p>\n<p>        print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;One of the strings does not match the pattern&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><h4>1. \u533a\u5206\u5927\u5c0f\u5199<\/h4>\n<\/p>\n<p><p>\u5728\u6bd4\u8f83\u5b57\u7b26\u4e32\u65f6\uff0c\u9ed8\u8ba4\u662f\u533a\u5206\u5927\u5c0f\u5199\u7684\u3002\u5982\u679c\u9700\u8981\u5ffd\u7565\u5927\u5c0f\u5199\uff0c\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u76f8\u540c\u7684\u5927\u5c0f\u5199\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;Apple&quot;<\/p>\n<p>str2 = &quot;banana&quot;<\/p>\n<p>if str1.lower() &lt; str2.lower():<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>elif str1.lower() &gt; str2.lower():<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u975e\u5b57\u6bcd\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u4e2d\u53ef\u80fd\u5305\u542b\u975e\u5b57\u6bcd\u5b57\u7b26\uff0c\u5982\u6570\u5b57\u548c\u7b26\u53f7\uff0c\u8fd9\u4e9b\u5b57\u7b26\u7684Unicode\u7801\u70b9\u4e0e\u5b57\u6bcd\u5b57\u7b26\u4e0d\u540c\u3002\u5728\u6bd4\u8f83\u5b57\u7b26\u4e32\u65f6\uff0c\u8fd9\u4e9b\u5b57\u7b26\u4e5f\u4f1a\u53c2\u4e0e\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;apple1&quot;<\/p>\n<p>str2 = &quot;apple2&quot;<\/p>\n<p>if str1 &lt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>elif str1 &gt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u56fd\u9645\u5316\u5b57\u7b26<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5305\u542b\u56fd\u9645\u5316\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\uff0c\u6bd4\u8f83\u65f6\u8981\u7279\u522b\u6ce8\u610f\u5b57\u7b26\u7684Unicode\u7801\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;ma\u00f1ana&quot;<\/p>\n<p>str2 = &quot;manzana&quot;<\/p>\n<p>if str1 &lt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is less than &#39;{str2}&#39;&quot;)<\/p>\n<p>elif str1 &gt; str2:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is greater than &#39;{str2}&#39;&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;&#39;{str1}&#39; is equal to &#39;{str2}&#39;&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5224\u65ad\u5b57\u7b26\u4e32\u5927\u5c0f\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u6700\u5e38\u7528\u7684\u662f\u76f4\u63a5\u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u573a\u666f\u3002\u5176\u4ed6\u65b9\u6cd5\u5982\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u548c\u6b63\u5219\u8868\u8fbe\u5f0f\u4e5f\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u8fdb\u884c\u9009\u62e9\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u9700\u8981\u6ce8\u610f\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u5199\u3001\u975e\u5b57\u6bcd\u5b57\u7b26\u548c\u56fd\u9645\u5316\u5b57\u7b26\u5bf9\u6bd4\u8f83\u7ed3\u679c\u7684\u5f71\u54cd\u3002\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u548c\u6ce8\u610f\u4e8b\u9879\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u6b63\u786e\u5224\u65ad\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6bd4\u8f83\u8fd0\u7b97\u7b26\u76f4\u63a5\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u3002\u5b57\u7b26\u4e32\u7684\u6bd4\u8f83\u662f\u57fa\u4e8e\u5b57\u6bcd\u7684\u5b57\u5178\u987a\u5e8f\u8fdb\u884c\u7684\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u201c&lt;\u201d\u3001\u201c&gt;\u201d\u3001\u201c==\u201d\u7b49\u8fd0\u7b97\u7b26\u53ef\u4ee5\u5224\u65ad\u5b57\u7b26\u4e32\u7684\u76f8\u5bf9\u987a\u5e8f\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">str1 = &quot;apple&quot;\nstr2 = &quot;banana&quot;\nif str1 &lt; str2:\n    print(f&quot;{str1} \u5728\u5b57\u5178\u987a\u5e8f\u4e2d\u6392\u5728 {str2} \u4e4b\u524d\u3002&quot;)\n<\/code><\/pre>\n<p><strong>Python\u4e2d\u7684\u5b57\u7b26\u4e32\u6bd4\u8f83\u662f\u5426\u533a\u5206\u5927\u5c0f\u5199\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u4e2d\u7684\u5b57\u7b26\u4e32\u6bd4\u8f83\u662f\u533a\u5206\u5927\u5c0f\u5199\u7684\u3002\u5728\u8fdb\u884c\u6bd4\u8f83\u65f6\uff0c\u5927\u5199\u5b57\u6bcd\u88ab\u8ba4\u4e3a\u5c0f\u4e8e\u5c0f\u5199\u5b57\u6bcd\uff0c\u56e0\u6b64\u201cApple\u201d\u4f1a\u88ab\u8ba4\u4e3a\u5c0f\u4e8e\u201capple\u201d\u3002\u5982\u679c\u5e0c\u671b\u8fdb\u884c\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u6bd4\u8f83\uff0c\u53ef\u4ee5\u4f7f\u7528<code>.lower()<\/code>\u6216<code>.upper()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u76f8\u540c\u7684\u5927\u5c0f\u5199\u8fdb\u884c\u6bd4\u8f83\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">if str1.lower() &lt; str2.lower():\n    print(f&quot;{str1} \u5728\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u60c5\u51b5\u4e0b\u6392\u5728 {str2} \u4e4b\u524d\u3002&quot;)\n<\/code><\/pre>\n<p><strong>\u5982\u4f55\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u6392\u5e8f\u987a\u5e8f\uff1f<\/strong><br \/>\u5982\u679c\u60f3\u8981\u83b7\u53d6\u591a\u4e2a\u5b57\u7b26\u4e32\u7684\u6392\u5e8f\u987a\u5e8f\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e<code>sorted()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5217\u8868\uff0c\u5176\u4e2d\u5305\u542b\u6309\u7167\u5b57\u5178\u987a\u5e8f\u6392\u5217\u7684\u5b57\u7b26\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">strings = [&quot;banana&quot;, &quot;apple&quot;, &quot;cherry&quot;]\nsorted_strings = sorted(strings)\nprint(sorted_strings)  # \u8f93\u51fa [&#39;apple&#39;, &#39;banana&#39;, &#39;cherry&#39;]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5feb\u901f\u5f97\u5230\u4efb\u4f55\u5b57\u7b26\u4e32\u5217\u8868\u7684\u6709\u5e8f\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5224\u65ad\u5b57\u7b26\u4e32\u5927\u5c0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd0\u7b97\u7b26\u6bd4\u8f83\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002\u6700\u5e38\u7528\u548c\u76f4\u63a5 [&hellip;]","protected":false},"author":3,"featured_media":1097451,"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\/1097447"}],"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=1097447"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097447\/revisions"}],"predecessor-version":[{"id":1097452,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1097447\/revisions\/1097452"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1097451"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1097447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1097447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1097447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}