{"id":1128291,"date":"2025-01-08T20:18:57","date_gmt":"2025-01-08T12:18:57","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1128291.html"},"modified":"2025-01-08T20:19:00","modified_gmt":"2025-01-08T12:19:00","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%e6%98%af%e5%9b%9e%e6%96%87%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1128291.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u56de\u6587\u4e32"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25095043\/74855820-0bd3-4fdf-8d54-6931a4093f7b.webp\" alt=\"python\u4e2d\u5982\u4f55\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u56de\u6587\u4e32\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u662f\u56de\u6587\u4e32\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u53cd\u8f6c\u5b57\u7b26\u4e32\u3001\u53cc\u6307\u9488\u6cd5\u3001\u9012\u5f52\u7b49\u3002\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83\u3001\u53cc\u6307\u9488\u6cd5\u6548\u7387\u8f83\u9ad8\u3001\u9012\u5f52\u65b9\u6cd5\u8f83\u4e3a\u590d\u6742\u3002<\/strong> \u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u79cd\u9ad8\u6548\u4e14\u7b80\u6d01\u7684\u65b9\u6cd5\uff0c\u5373\u901a\u8fc7\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u4e0e\u539f\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><p>\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83\u7684\u65b9\u6cd5\u662f\u6700\u76f4\u89c2\u7684\u3002\u6211\u4eec\u5148\u5c06\u5b57\u7b26\u4e32\u53cd\u8f6c\uff0c\u7136\u540e\u4e0e\u539f\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\uff0c\u5982\u679c\u4e24\u8005\u76f8\u7b49\uff0c\u5219\u8be5\u5b57\u7b26\u4e32\u662f\u56de\u6587\u4e32\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\uff0c\u5176\u4e2dn\u662f\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u5177\u4f53\u7684\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_palindrome(s):<\/p>\n<p>    return s == s[::-1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e00\u3001\u4ec0\u4e48\u662f\u56de\u6587\u4e32\uff1f<\/h3>\n<\/p>\n<p><p>\u56de\u6587\u4e32\u662f\u6307\u4e00\u4e2a\u5b57\u7b26\u4e32\u4ece\u524d\u5f80\u540e\u8bfb\u548c\u4ece\u540e\u5f80\u524d\u8bfb\u90fd\u76f8\u540c\u3002\u4f8b\u5982\uff0c\u201cmadam\u201d\u3001\u201cracecar\u201d\u90fd\u662f\u56de\u6587\u4e32\uff0c\u800c\u201chello\u201d\u4e0d\u662f\u3002\u56de\u6587\u4e32\u5728\u8bb8\u591a\u8ba1\u7b97\u673a\u79d1\u5b66\u9886\u57df\u4e2d\u90fd\u6709\u5e94\u7528\uff0c\u5982\u5b57\u7b26\u4e32\u5904\u7406\u3001\u6570\u636e\u9a8c\u8bc1\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5982\u524d\u6240\u8ff0\uff0c\u8fd9\u662f\u6700\u4e3a\u76f4\u89c2\u7684\u65b9\u6cd5\u3002\u6211\u4eec\u9996\u5148\u53cd\u8f6c\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u5c06\u5176\u4e0e\u539f\u5b57\u7b26\u4e32\u8fdb\u884c\u6bd4\u8f83\u3002\u5982\u679c\u4e24\u8005\u76f8\u7b49\uff0c\u5219\u8be5\u5b57\u7b26\u4e32\u4e3a\u56de\u6587\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_palindrome(s):<\/p>\n<p>    return s == s[::-1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\u4ee3\u7801\u7b80\u6d01\uff0c\u6613\u4e8e\u7406\u89e3\u548c\u5b9e\u73b0\u3002\u5176\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u4e5f\u4e3aO(n)\uff0c\u56e0\u4e3a\u6211\u4eec\u9700\u8981\u5b58\u50a8\u53cd\u8f6c\u540e\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u53cc\u6307\u9488\u6cd5<\/h3>\n<\/p>\n<p><p>\u53cc\u6307\u9488\u6cd5\u662f\u4e00\u79cd\u66f4\u4e3a\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u4ece\u5b57\u7b26\u4e32\u7684\u4e24\u7aef\u5411\u4e2d\u95f4\u79fb\u52a8\u4e24\u4e2a\u6307\u9488\uff0c\u9010\u4e2a\u5b57\u7b26\u8fdb\u884c\u6bd4\u8f83\u3002\u5982\u679c\u6240\u6709\u5b57\u7b26\u90fd\u76f8\u7b49\uff0c\u5219\u8be5\u5b57\u7b26\u4e32\u4e3a\u56de\u6587\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_palindrome(s):<\/p>\n<p>    left, right = 0, len(s) - 1<\/p>\n<p>    while left &lt; right:<\/p>\n<p>        if s[left] != s[right]:<\/p>\n<p>            return False<\/p>\n<p>        left += 1<\/p>\n<p>        right -= 1<\/p>\n<p>    return True<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u53cc\u6307\u9488\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\u8282\u7701\u7a7a\u95f4\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u989d\u5916\u5b58\u50a8\u53cd\u8f6c\u540e\u7684\u5b57\u7b26\u4e32\uff0c\u5176\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\uff0c\u7a7a\u95f4\u590d\u6742\u5ea6\u4e3aO(1)\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u56db\u3001\u9012\u5f52\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9012\u5f52\u65b9\u6cd5\u662f\u4e00\u79cd\u8f83\u4e3a\u590d\u6742\u4f46\u4e5f\u6bd4\u8f83\u6709\u8da3\u7684\u65b9\u6cd5\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u9012\u5f52\u51fd\u6570\u6765\u6bd4\u8f83\u5b57\u7b26\u4e32\u7684\u9996\u5c3e\u5b57\u7b26\uff0c\u5982\u679c\u76f8\u7b49\uff0c\u5219\u7ee7\u7eed\u6bd4\u8f83\u53bb\u6389\u9996\u5c3e\u5b57\u7b26\u540e\u7684\u5b50\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def is_palindrome(s):<\/p>\n<p>    if len(s) &lt;= 1:<\/p>\n<p>        return True<\/p>\n<p>    if s[0] != s[-1]:<\/p>\n<p>        return False<\/p>\n<p>    return is_palindrome(s[1:-1])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u9012\u5f52\u65b9\u6cd5\u7684\u65f6\u95f4\u590d\u6742\u5ea6\u4e3aO(n)\uff0c\u4f46\u5176\u7a7a\u95f4\u590d\u6742\u5ea6\u8f83\u9ad8\uff0c\u4e3aO(n)\uff0c\u56e0\u4e3a\u6bcf\u6b21\u9012\u5f52\u8c03\u7528\u90fd\u9700\u8981\u989d\u5916\u7684\u6808\u7a7a\u95f4\u3002<\/strong><\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u5ffd\u7565\u5927\u5c0f\u5199\u548c\u975e\u5b57\u6bcd\u5b57\u7b26<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5ffd\u7565\u5b57\u7b26\u4e32\u4e2d\u7684\u5927\u5c0f\u5199\u548c\u975e\u5b57\u6bcd\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u201cA man, a plan, a canal: Panama\u201d \u5e94\u88ab\u89c6\u4e3a\u56de\u6587\u4e32\u3002\u6211\u4eec\u53ef\u4ee5\u5148\u9884\u5904\u7406\u5b57\u7b26\u4e32\uff0c\u5c06\u5176\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u5e76\u53bb\u6389\u975e\u5b57\u6bcd\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def is_palindrome(s):<\/p>\n<p>    s = re.sub(r&#39;[^A-Za-z0-9]&#39;, &#39;&#39;, s).lower()<\/p>\n<p>    return s == s[::-1]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u5b9e\u73b0\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u6389\u975e\u5b57\u6bcd\u5b57\u7b26\uff0c\u5e76\u5c06\u5269\u4e0b\u7684\u5b57\u7b26\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u7136\u540e\u518d\u8fdb\u884c\u56de\u6587\u5224\u65ad\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u6027\u80fd\u6d4b\u8bd5\u6765\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6548\u7387\u3002\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\uff0c\u53cc\u6307\u9488\u6cd5\u7684\u6548\u7387\u6700\u9ad8\uff0c\u53cd\u8f6c\u5b57\u7b26\u4e32\u6b21\u4e4b\uff0c\u800c\u9012\u5f52\u65b9\u6cd5\u6700\u6162\u3002<\/p>\n<\/p>\n<p><h4>\u6027\u80fd\u6d4b\u8bd5\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>def test_performance():<\/p>\n<p>    s = &quot;A man, a plan, a canal: Panama&quot; * 10000<\/p>\n<p>    start = time.time()<\/p>\n<p>    is_palindrome(s)<\/p>\n<p>    print(&quot;Reverse method:&quot;, time.time() - start)<\/p>\n<p>    start = time.time()<\/p>\n<p>    is_palindrome_two_pointers(s)<\/p>\n<p>    print(&quot;Two pointers method:&quot;, time.time() - start)<\/p>\n<p>    start = time.time()<\/p>\n<p>    is_palindrome_recursive(s)<\/p>\n<p>    print(&quot;Recursive method:&quot;, time.time() - start)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u6d4b\u8bd5\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u53d1\u73b0\u53cc\u6307\u9488\u6cd5\u7684\u6027\u80fd\u663e\u8457\u4f18\u4e8e\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u4e2d\u7684\u6ce8\u610f\u4e8b\u9879<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u9700\u8981\u8003\u8651\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u8f93\u5165\u6570\u636e\u7684\u9884\u5904\u7406\uff1a<\/strong> \u5982\u4e0a\u6587\u6240\u8ff0\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u5ffd\u7565\u5927\u5c0f\u5199\u548c\u975e\u5b57\u6bcd\u5b57\u7b26\u3002<\/li>\n<li><strong>\u957f\u5b57\u7b26\u4e32\u7684\u5904\u7406\uff1a<\/strong> \u5bf9\u4e8e\u975e\u5e38\u957f\u7684\u5b57\u7b26\u4e32\uff0c\u9012\u5f52\u65b9\u6cd5\u53ef\u80fd\u5bfc\u81f4\u6808\u6ea2\u51fa\uff0c\u56e0\u6b64\u4e0d\u63a8\u8350\u4f7f\u7528\u3002<\/li>\n<li><strong>\u591a\u79cd\u5b57\u7b26\u7f16\u7801\uff1a<\/strong> \u5982\u679c\u5b57\u7b26\u4e32\u5305\u542b\u591a\u79cd\u5b57\u7b26\u7f16\u7801\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u7edf\u4e00\u5904\u7406\u3002<\/li>\n<\/ol>\n<p><h3>\u516b\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5728Python\u4e2d\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u56de\u6587\u4e32\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83\u3001\u53cc\u6307\u9488\u6cd5\u548c\u9012\u5f52\u65b9\u6cd5\u3002<strong>\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83\u7684\u65b9\u6cd5\u4ee3\u7801\u7b80\u6d01\uff0c\u9002\u5408\u5feb\u901f\u5b9e\u73b0\uff1b\u53cc\u6307\u9488\u6cd5\u6548\u7387\u9ad8\uff0c\u9002\u5408\u5904\u7406\u957f\u5b57\u7b26\u4e32\uff1b\u9012\u5f52\u65b9\u6cd5\u867d\u7136\u6709\u8da3\uff0c\u4f46\u5728\u5904\u7406\u957f\u5b57\u7b26\u4e32\u65f6\u53ef\u80fd\u5bfc\u81f4\u6808\u6ea2\u51fa\u3002<\/strong> \u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u8003\u8651\u8f93\u5165\u6570\u636e\u7684\u9884\u5904\u7406\u548c\u591a\u79cd\u5b57\u7b26\u7f16\u7801\u7684\u5904\u7406\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u9ad8\u6548\u5730\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u56de\u6587\u4e32\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5224\u65ad\u4e00\u4e2a\u5b57\u7b26\u4e32\u662f\u5426\u662f\u56de\u6587\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u6bd4\u8f83\u5b57\u7b26\u4e32\u4e0e\u5176\u53cd\u8f6c\u7248\u672c\u6765\u5224\u65ad\u662f\u5426\u4e3a\u56de\u6587\u4e32\u3002\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\uff0c\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4f8b\u5982\uff0c<code>string == string[::-1]<\/code>\uff0c\u5982\u679c\u7ed3\u679c\u4e3a\u771f\uff0c\u5219\u8be5\u5b57\u7b26\u4e32\u662f\u56de\u6587\u4e32\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u662f\u56de\u6587\u4e32\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528\u5207\u7247\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u6216\u9012\u5f52\u7684\u65b9\u6cd5\u6765\u9a8c\u8bc1\u3002\u901a\u8fc7\u4ece\u5b57\u7b26\u4e32\u7684\u4e24\u7aef\u5f00\u59cb\u9010\u4e2a\u6bd4\u8f83\u5b57\u7b26\uff0c\u76f4\u5230\u4e2d\u95f4\u4e3a\u6b62\u3002\u5982\u679c\u6240\u6709\u5b57\u7b26\u90fd\u5339\u914d\uff0c\u5219\u5b57\u7b26\u4e32\u662f\u56de\u6587\u4e32\u3002\u6b64\u5916\uff0cPython\u7684<code>collections.deque<\/code>\u4e5f\u53ef\u4ee5\u7528\u4e8e\u53cc\u5411\u961f\u5217\u7684\u6bd4\u8f83\u3002<\/p>\n<p><strong>\u5728\u5224\u65ad\u56de\u6587\u4e32\u65f6\uff0c\u5982\u4f55\u5904\u7406\u5927\u5c0f\u5199\u548c\u7a7a\u683c\u95ee\u9898\uff1f<\/strong><br \/>\u5224\u65ad\u56de\u6587\u4e32\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5ffd\u7565\u5927\u5c0f\u5199\u548c\u7a7a\u683c\u3002\u53ef\u4ee5\u4f7f\u7528<code>str.lower()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u5e76\u901a\u8fc7<code>str.replace()<\/code>\u65b9\u6cd5\u53bb\u9664\u7a7a\u683c\uff0c\u786e\u4fdd\u6bd4\u8f83\u65f6\u7684\u4e00\u81f4\u6027\u3002\u4f8b\u5982\uff0c\u5904\u7406\u540e\u7684\u5b57\u7b26\u4e32\u53ef\u4ee5\u7528<code>cleaned_string = original_string.lower().replace(&quot; &quot;, &quot;&quot;)<\/code>\u8fdb\u884c\u5224\u65ad\u3002\u8fd9\u6837\uff0c&quot;A man a plan a canal Panama&quot; \u4e5f\u4f1a\u88ab\u8bc6\u522b\u4e3a\u56de\u6587\u4e32\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5224\u65ad\u5b57\u7b26\u4e32\u662f\u5426\u662f\u56de\u6587\u4e32\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\uff0c\u5305\u62ec\u53cd\u8f6c\u5b57\u7b26\u4e32\u3001\u53cc\u6307\u9488\u6cd5\u3001\u9012\u5f52\u7b49\u3002\u53cd\u8f6c\u5b57\u7b26\u4e32\u5e76\u6bd4\u8f83\u3001\u53cc [&hellip;]","protected":false},"author":3,"featured_media":1128297,"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\/1128291"}],"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=1128291"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128291\/revisions"}],"predecessor-version":[{"id":1128299,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1128291\/revisions\/1128299"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1128297"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1128291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1128291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1128291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}