{"id":1138929,"date":"2025-01-08T22:05:07","date_gmt":"2025-01-08T14:05:07","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138929.html"},"modified":"2025-01-08T22:05:11","modified_gmt":"2025-01-08T14:05:11","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%af%94%e8%be%83%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%98%af%e5%90%a6%e4%b8%80%e6%a0%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1138929.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u6837"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25102405\/f38ebfbe-ebe6-42c2-8058-52168736f6c5.webp\" alt=\"python\u4e2d\u5982\u4f55\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u6837\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u6837\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528==\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528str.compare()\u65b9\u6cd5\u3001\u4f7f\u7528locale\u6a21\u5757\u4e2d\u7684strcoll()\u65b9\u6cd5\u3002\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528==\u8fd0\u7b97\u7b26\uff0c\u8fd9\u662f\u56e0\u4e3a\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\u4e14\u6548\u7387\u9ad8\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e00\u3001== \u8fd0\u7b97\u7b26<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528==\u8fd0\u7b97\u7b26\u662f\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u6765\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u76f8\u7b49\u3002\u8fd9\u79cd\u65b9\u6cd5\u76f4\u63a5\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5b57\u7b26\u5e8f\u5217\uff0c\u5982\u679c\u5b8c\u5168\u4e00\u81f4\u5219\u8fd4\u56deTrue\uff0c\u5426\u5219\u8fd4\u56deFalse\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;hello&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if str1 == str2:<\/p>\n<p>    print(&quot;The strings are equal.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528str.compare()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u5bf9\u8c61\uff0c\u56e0\u6b64\u6ca1\u6709\u76f4\u63a5\u7684compare()\u65b9\u6cd5\u3002\u4f46\u662f\u6211\u4eec\u53ef\u4ee5\u7528\u5176\u4ed6\u65b9\u5f0f\u6765\u6a21\u62df\u8fd9\u79cd\u6bd4\u8f83\u3002\u901a\u5e38\uff0cPython\u7684\u5185\u7f6e\u51fd\u6570<code>cmp()<\/code>\u5728Python 2\u4e2d\u53ef\u4ee5\u7528\u4e8e\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\uff0c\u4f46\u5728Python 3\u4e2d\u8fd9\u4e2a\u51fd\u6570\u5df2\u88ab\u79fb\u9664\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528locale.strcoll()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u6839\u636e\u7279\u5b9a\u7684\u533a\u57df\u8bbe\u7f6e\uff08locale\uff09\u6765\u6bd4\u8f83\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u4f7f\u7528<code>locale<\/code>\u6a21\u5757\u4e2d\u7684<code>strcoll()<\/code>\u65b9\u6cd5\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u6839\u636e\u5f53\u524d\u7684\u533a\u57df\u8bbe\u7f6e\u6765\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import locale<\/p>\n<p>locale.setlocale(locale.LC_ALL, &#39;en_US.UTF-8&#39;)<\/p>\n<p>str1 = &quot;hello&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if locale.strcoll(str1, str2) == 0:<\/p>\n<p>    print(&quot;The strings are equal.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u8be6\u7ec6\u63cf\u8ff0== \u8fd0\u7b97\u7b26\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p><strong>== \u8fd0\u7b97\u7b26\u7684\u4f7f\u7528\u4e0d\u4ec5\u7b80\u5355\uff0c\u800c\u4e14\u6548\u7387\u9ad8\u3002<\/strong> \u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u4f7f\u7528==\u8fd0\u7b97\u7b26\u6765\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u76f8\u7b49\u662f\u6700\u63a8\u8350\u7684\u65b9\u5f0f\u3002\u5b83\u76f4\u63a5\u6bd4\u8f83\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u5f53\u4e14\u4ec5\u5f53\u6240\u6709\u5b57\u7b26\u90fd\u76f8\u540c\uff0c\u7ed3\u679c\u624d\u4e3aTrue\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e5f\u652f\u6301Unicode\u5b57\u7b26\u4e32\u7684\u6bd4\u8f83\uff0c\u5e76\u4e14\u80fd\u591f\u6b63\u786e\u5904\u7406\u5927\u5c0f\u5199\u654f\u611f\u548c\u4e0d\u654f\u611f\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;Hello&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if str1 == str2:<\/p>\n<p>    print(&quot;The strings are equal.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c<code>str1<\/code>\u548c<code>str2<\/code>\u56e0\u4e3a\u5927\u5c0f\u5199\u4e0d\u540c\uff0c\u6240\u4ee5\u6bd4\u8f83\u7ed3\u679c\u4e3aFalse\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u8fdb\u884c\u5b57\u7b26\u4e32\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\u5916\uff0c\u8fd8\u6709\u5176\u4ed6\u4e00\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u6bd4\u8f83\u5b57\u7b26\u4e32\uff0c\u6839\u636e\u4e0d\u540c\u7684\u9700\u6c42\uff0c\u9009\u62e9\u9002\u5408\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h4>\u4f7f\u7528is\u8fd0\u7b97\u7b26<\/h4>\n<\/p>\n<p><p><code>is<\/code>\u8fd0\u7b97\u7b26\u6bd4\u8f83\u7684\u662f\u4e24\u4e2a\u5bf9\u8c61\u7684\u5185\u5b58\u5730\u5740\uff0c\u800c\u4e0d\u662f\u503c\u3002\u56e0\u6b64\uff0c\u9664\u975e\u4e24\u4e2a\u5b57\u7b26\u4e32\u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\uff0c\u5426\u5219<code>is<\/code>\u8fd0\u7b97\u7b26\u901a\u5e38\u4e0d\u7528\u4e8e\u5b57\u7b26\u4e32\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;hello&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if str1 is str2:<\/p>\n<p>    print(&quot;The strings are the same object.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not the same object.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u4f7f\u7528sorted()\u51fd\u6570\u6bd4\u8f83\u5b57\u7b26\u4e32<\/h4>\n<\/p>\n<p><p><code>sorted()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u6392\u5e8f\u540e\u8fdb\u884c\u6bd4\u8f83\uff0c\u8fd9\u5728\u6bd4\u8f83\u5ffd\u7565\u987a\u5e8f\u7684\u60c5\u51b5\u4e0b\u7279\u522b\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;abc&quot;<\/p>\n<p>str2 = &quot;bac&quot;<\/p>\n<p>if sorted(str1) == sorted(str2):<\/p>\n<p>    print(&quot;The strings are equal when sorted.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal when sorted.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u7528\u4e8e\u9700\u8981\u5ffd\u7565\u5b57\u7b26\u987a\u5e8f\u7684\u60c5\u51b5\uff0c\u4f46\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u76f4\u63a5\u4f7f\u7528==\u8fd0\u7b97\u7b26\u66f4\u4e3a\u7b80\u5355\u548c\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u6bd4\u8f83\u5b57\u7b26\u4e32\u65f6\u7684\u5e38\u89c1\u95ee\u9898\u548c\u89e3\u51b3\u65b9\u6848<\/h3>\n<\/p>\n<p><h4>\u533a\u5206\u5927\u5c0f\u5199\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c==\u8fd0\u7b97\u7b26\u533a\u5206\u5927\u5c0f\u5199\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\u540e\u518d\u8fdb\u884c\u6bd4\u8f83\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot;Hello&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if str1.lower() == str2.lower():<\/p>\n<p>    print(&quot;The strings are equal ignoring case.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u53bb\u9664\u7a7a\u767d\u5b57\u7b26\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u5b57\u7b26\u4e32\u4e2d\u53ef\u80fd\u5305\u542b\u591a\u4f59\u7684\u7a7a\u767d\u5b57\u7b26\uff0c\u8fd9\u4e9b\u5b57\u7b26\u4f1a\u5f71\u54cd\u6bd4\u8f83\u7ed3\u679c\u3002\u53ef\u4ee5\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u767d\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str1 = &quot; hello &quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>if str1.strip() == str2.strip():<\/p>\n<p>    print(&quot;The strings are equal after stripping whitespace.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u5ffd\u7565\u7279\u6b8a\u5b57\u7b26\u7684\u6bd4\u8f83<\/h4>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5ffd\u7565\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u6b8a\u5b57\u7b26\u6765\u8fdb\u884c\u6bd4\u8f83\uff0c\u8fd9\u65f6\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u53bb\u9664\u7279\u6b8a\u5b57\u7b26\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>str1 = &quot;he!llo&quot;<\/p>\n<p>str2 = &quot;hello&quot;<\/p>\n<p>def remove_special_chars(s):<\/p>\n<p>    return re.sub(r&#39;\\W+&#39;, &#39;&#39;, s)<\/p>\n<p>if remove_special_chars(str1) == remove_special_chars(str2):<\/p>\n<p>    print(&quot;The strings are equal ignoring special characters.&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;The strings are not equal.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u76f8\u7b49\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u548c\u6700\u63a8\u8350\u7684\u662f\u4f7f\u7528==\u8fd0\u7b97\u7b26\u3002<strong>\u4f7f\u7528==\u8fd0\u7b97\u7b26\u4e0d\u4ec5\u7b80\u5355\u76f4\u89c2\uff0c\u800c\u4e14\u6548\u7387\u9ad8<\/strong>\u3002\u5bf9\u4e8e\u7279\u5b9a\u9700\u6c42\uff0c\u5982\u533a\u57df\u8bbe\u7f6e\u6bd4\u8f83\u3001\u5ffd\u7565\u5927\u5c0f\u5199\u3001\u53bb\u9664\u7a7a\u767d\u5b57\u7b26\u6216\u7279\u6b8a\u5b57\u7b26\uff0c\u53ef\u4ee5\u9009\u62e9\u76f8\u5e94\u7684\u65b9\u6cd5\u6765\u5904\u7406\u3002\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u7406\u89e3\u5176\u5de5\u4f5c\u539f\u7406\u548c\u5e94\u7528\u573a\u666f\u662f\u5173\u952e\uff0c\u53ea\u6709\u8fd9\u6837\u624d\u80fd\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\u7075\u6d3b\u8fd0\u7528\u5e76\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5224\u65ad\u4e24\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u5b8c\u5168\u76f8\u540c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>==<\/code>\u8fd0\u7b97\u7b26\u6765\u5224\u65ad\u4e24\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u76f8\u7b49\u3002\u5982\u679c\u4e24\u4e2a\u5b57\u7b26\u4e32\u7684\u5185\u5bb9\u5b8c\u5168\u4e00\u81f4\uff0c\u8fd4\u56de\u503c\u4e3a<code>True<\/code>\uff0c\u5426\u5219\u8fd4\u56de<code>False<\/code>\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">str1 = &quot;hello&quot;\nstr2 = &quot;hello&quot;\nresult = str1 == str2  # result \u4e3a True\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u662f\u533a\u5206\u5927\u5c0f\u5199\u7684\uff0c\u56e0\u6b64<code>&quot;Hello&quot;<\/code>\u4e0e<code>&quot;hello&quot;<\/code>\u662f\u4e0d\u76f8\u7b49\u7684\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u5b58\u5728\u5b57\u7b26\u4e32\u6bd4\u8f83\u7684\u5176\u4ed6\u65b9\u6cd5\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>==<\/code>\u8fd0\u7b97\u7b26\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86<code>str.compare()<\/code>\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u66f4\u590d\u6742\u7684\u6bd4\u8f83\u9700\u6c42\u3002\u8be5\u65b9\u6cd5\u53ef\u4ee5\u6bd4\u8f83\u5b57\u7b26\u4e32\u7684\u5b57\u5178\u987a\u5e8f\u3002\u5c3d\u7ba1\u5982\u6b64\uff0c\u5bf9\u4e8e\u7b80\u5355\u7684\u76f8\u7b49\u6027\u5224\u65ad\uff0c<code>==<\/code>\u8fd0\u7b97\u7b26\u662f\u6700\u5e38\u7528\u4e14\u9ad8\u6548\u7684\u9009\u62e9\u3002<\/p>\n<p><strong>\u5982\u4f55\u5904\u7406\u5b57\u7b26\u4e32\u6bd4\u8f83\u65f6\u7684\u5927\u5c0f\u5199\u95ee\u9898\uff1f<\/strong><br \/>\u5728\u8fdb\u884c\u5b57\u7b26\u4e32\u6bd4\u8f83\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str.lower()<\/code>\u6216<code>str.upper()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u7edf\u4e00\u7684\u5927\u5c0f\u5199\uff0c\u4ece\u800c\u6d88\u9664\u5927\u5c0f\u5199\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">str1 = &quot;Hello&quot;\nstr2 = &quot;hello&quot;\nresult = str1.lower() == str2.lower()  # result \u4e3a True\n<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd\u6bd4\u8f83\u65f6\u4e0d\u53d7\u5927\u5c0f\u5199\u7684\u5e72\u6270\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6bd4\u8f83\u5b57\u7b26\u4e32\u662f\u5426\u4e00\u6837\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u4f7f\u7528==\u8fd0\u7b97\u7b26\u3001\u4f7f\u7528str.compare()\u65b9\u6cd5\u3001 [&hellip;]","protected":false},"author":3,"featured_media":1138935,"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\/1138929"}],"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=1138929"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138929\/revisions"}],"predecessor-version":[{"id":1138938,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1138929\/revisions\/1138938"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1138935"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1138929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1138929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1138929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}