{"id":976518,"date":"2024-12-27T06:22:15","date_gmt":"2024-12-26T22:22:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/976518.html"},"modified":"2024-12-27T06:22:17","modified_gmt":"2024-12-26T22:22:17","slug":"%e5%a6%82%e4%bd%95%e6%8a%8a%e7%a9%ba%e6%a0%bc%e5%8e%bb%e6%8e%89python","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/976518.html","title":{"rendered":"\u5982\u4f55\u628a\u7a7a\u683c\u53bb\u6389python"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24202204\/5d904d5e-f1c0-4950-91f2-1c16ed254471.webp\" alt=\"\u5982\u4f55\u628a\u7a7a\u683c\u53bb\u6389python\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5replace()\u3001split()\u548cjoin()\u7ec4\u5408\u4f7f\u7528\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002\u5176\u4e2d\uff0c\u4f7f\u7528replace()\u65b9\u6cd5\u662f\u6700\u7b80\u5355\u76f4\u63a5\u7684\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528replace()\u65b9\u6cd5\u662f\u4e00\u4e2a\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u7b80\u5355\u4e14\u6613\u4e8e\u7406\u89e3\u3002replace()\u65b9\u6cd5\u53ef\u4ee5\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\u3002\u8981\u53bb\u6389\u7a7a\u683c\uff0c\u53ea\u9700\u5c06\u7a7a\u683c\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u5373\u53ef\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528replace()\u65b9\u6cd5\u53bb\u6389\u7a7a\u683c\uff0c\u5e76\u63a2\u8ba8\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528replace()\u65b9\u6cd5\u53bb\u6389\u7a7a\u683c<\/p>\n<\/p>\n<p><p>replace()\u65b9\u6cd5\u662fPython\u5b57\u7b26\u4e32\u5bf9\u8c61\u7684\u4e00\u4e2a\u5185\u7f6e\u65b9\u6cd5\uff0c\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u6307\u5b9a\u5b50\u5b57\u7b26\u4e32\u3002\u8981\u53bb\u6389\u7a7a\u683c\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06\u7a7a\u683c\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u6765\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello World&quot;<\/p>\n<p>text_no_spaces = text.replace(&quot; &quot;, &quot;&quot;)<\/p>\n<p>print(text_no_spaces)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>replace(&quot; &quot;, &quot;&quot;)<\/code>\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u7a7a\u683c\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u6240\u6709\u7a7a\u683c\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u4e14\u9ad8\u6548\uff0c\u9002\u7528\u4e8e\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7a7a\u683c\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528split()\u548cjoin()\u65b9\u6cd5\u7ec4\u5408\u53bb\u6389\u7a7a\u683c<\/p>\n<\/p>\n<p><p>\u53e6\u4e00\u79cd\u53bb\u6389\u7a7a\u683c\u7684\u65b9\u6cd5\u662f\u7ed3\u5408\u4f7f\u7528split()\u548cjoin()\u65b9\u6cd5\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u601d\u8def\u662f\uff0c\u9996\u5148\u4f7f\u7528split()\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309\u7a7a\u683c\u62c6\u5206\u6210\u4e00\u4e2a\u5355\u8bcd\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528join()\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5355\u8bcd\u91cd\u65b0\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello World&quot;<\/p>\n<p>text_no_spaces = &#39;&#39;.join(text.split())<\/p>\n<p>print(text_no_spaces)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>split()<\/code>\u65b9\u6cd5\u4e0d\u5e26\u53c2\u6570\u65f6\u9ed8\u8ba4\u6309\u7a7a\u683c\u62c6\u5206\u5b57\u7b26\u4e32\uff0c\u8fd4\u56de\u4e00\u4e2a\u4e0d\u5305\u542b\u7a7a\u683c\u7684\u5355\u8bcd\u5217\u8868\u3002\u800c<code>join()<\/code>\u65b9\u6cd5\u7528\u4e8e\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u8fd9\u4e2a\u65b9\u6cd5\u53ef\u4ee5\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u7a7a\u683c\uff0c\u5305\u62ec\u9996\u5c3e\u548c\u4e2d\u95f4\u7684\u591a\u4e2a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u6389\u7a7a\u683c<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u5904\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>sub()<\/code>\u51fd\u6570\u6765\u53bb\u6389\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;Hello World&quot;<\/p>\n<p>text_no_spaces = re.sub(r&quot;\\s+&quot;, &quot;&quot;, text)<\/p>\n<p>print(text_no_spaces)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>\\s+<\/code>\u662f\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\uff0c\u8868\u793a\u5339\u914d\u4e00\u4e2a\u6216\u591a\u4e2a\u7a7a\u767d\u5b57\u7b26\u3002<code>re.sub(r&quot;\\s+&quot;, &quot;&quot;, text)<\/code>\u5c06\u6240\u6709\u7a7a\u767d\u5b57\u7b26\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5217\u8868\u89e3\u6790\u53bb\u6389\u7a7a\u683c<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5217\u8868\u89e3\u6790\uff08List Comprehension\uff09\u6765\u53bb\u6389\u7a7a\u683c\u3002\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u53ea\u4fdd\u7559\u975e\u7a7a\u683c\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello World&quot;<\/p>\n<p>text_no_spaces = &#39;&#39;.join([char for char in text if char != &#39; &#39;])<\/p>\n<p>print(text_no_spaces)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u89e3\u6790\u7528\u4e8e\u6784\u5efa\u4e00\u4e2a\u53ea\u5305\u542b\u975e\u7a7a\u683c\u5b57\u7b26\u7684\u65b0\u5217\u8868\uff0c\u7136\u540e\u901a\u8fc7<code>join()<\/code>\u65b9\u6cd5\u5c06\u5176\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u4e0d\u5982\u524d\u4e24\u79cd\u65b9\u6cd5\u7b80\u6d01\uff0c\u4f46\u540c\u6837\u53ef\u4ee5\u8fbe\u5230\u53bb\u6389\u7a7a\u683c\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6027\u80fd\u5bf9\u6bd4\u4e0e\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u53bb\u6389\u7a7a\u683c\u7684\u65b9\u6cd5\u65f6\uff0c\u5e94\u8be5\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u8981\u6c42\u6765\u51b3\u5b9a\u3002\u5bf9\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\uff0c\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u6216<code>split()<\/code>\u548c<code>join()<\/code>\u65b9\u6cd5\u901a\u5e38\u662f\u6700\u76f4\u63a5\u6709\u6548\u7684\u9009\u62e9\u3002\u800c\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u5904\u7406\u4efb\u52a1\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6027\u80fd\u5bf9\u6bd4<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li><code>replace()<\/code>\u65b9\u6cd5\u7684\u6027\u80fd\u901a\u5e38\u4f18\u4e8e<code>split()<\/code>\u548c<code>join()<\/code>\u7ec4\u5408\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u76f4\u63a5\u5728\u539f\u5b57\u7b26\u4e32\u4e0a\u8fdb\u884c\u66ff\u6362\u64cd\u4f5c\u3002<\/li>\n<li>\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5\u7684\u6027\u80fd\u53ef\u80fd\u8f83\u4f4e\uff0c\u5c24\u5176\u662f\u5f53\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u8f83\u590d\u6742\u65f6\uff0c\u56e0\u4e3a\u5b83\u9700\u8981\u8fdb\u884c\u6a21\u5f0f\u5339\u914d\u7684\u989d\u5916\u8ba1\u7b97\u3002<\/li>\n<li>\u5217\u8868\u89e3\u6790\u65b9\u6cd5\u7684\u6027\u80fd\u53d6\u51b3\u4e8e\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\u548c\u5b9e\u73b0\u7684\u5177\u4f53\u65b9\u5f0f\uff0c\u901a\u5e38\u4e0d\u5982<code>replace()<\/code>\u65b9\u6cd5\u9ad8\u6548\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u573a\u666f<\/strong>\uff1a<\/p>\n<\/p>\n<ul>\n<li>\u5bf9\u4e8e\u7b80\u5355\u7684\u6587\u672c\u6e05\u7406\u4efb\u52a1\uff0c\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\u53ef\u4ee5\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u3002<\/li>\n<li>\u5f53\u9700\u8981\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\uff08\u5982\u591a\u4e2a\u7a7a\u683c\u6216\u7279\u5b9a\u5b57\u7b26\uff09\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u65b9\u5f0f\u3002<\/li>\n<li>\u5728\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u590d\u6742\u7684\u6761\u4ef6\u8fc7\u6ee4\u65f6\uff0c\u5217\u8868\u89e3\u6790\u65b9\u6cd5\u53ef\u4ee5\u63d0\u4f9b\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\u63a7\u5236\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\u5728\u6587\u672c\u5904\u7406\u548c\u6570\u636e\u6e05\u7406\u8fc7\u7a0b\u4e2d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u4efb\u52a1\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\uff0c\u5305\u62ec<code>replace()<\/code>\u65b9\u6cd5\u3001<code>split()<\/code>\u548c<code>join()<\/code>\u7ec4\u5408\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5217\u8868\u89e3\u6790\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u5e94\u57fa\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u6027\u80fd\u8003\u8651\u3002\u901a\u8fc7\u5408\u7406\u8fd0\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\uff0c\u4f18\u5316\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u53bb\u6389\u5b57\u7b26\u4e32\u524d\u540e\u7684\u7a7a\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u6765\u5220\u9664\u5b57\u7b26\u4e32\u4e24\u7aef\u7684\u7a7a\u683c\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;  Hello World!  &quot;\ncleaned_text = text.strip()\nprint(cleaned_text)  # \u8f93\u51fa: &quot;Hello World!&quot;\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\uff0c\u786e\u4fdd\u6ca1\u6709\u591a\u4f59\u7684\u7a7a\u683c\u5e72\u6270\u540e\u7eed\u5904\u7406\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u53bb\u6389\u5b57\u7b26\u4e32\u5185\u90e8\u7684\u7a7a\u683c\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u7684\u7a7a\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;Hello World!&quot;\nno_spaces = text.replace(&quot; &quot;, &quot;&quot;)\nprint(no_spaces)  # \u8f93\u51fa: &quot;HelloWorld!&quot;\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u6e05\u7406\u6587\u672c\u4ee5\u4fbf\u5b58\u50a8\u6216\u8fdb\u4e00\u6b65\u5904\u7406\u7684\u573a\u666f\u3002<\/p>\n<p><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5728Python\u4e2d\u53bb\u6389\u7a7a\u683c\u7684\u6700\u4f73\u5b9e\u8df5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\u3002\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u6765\u5b9e\u73b0\uff0c\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\n\ntext = &quot;  Hello   World!  &quot;\nno_spaces = re.sub(r&quot;\\s+&quot;, &quot;&quot;, text)\nprint(no_spaces)  # \u8f93\u51fa: &quot;HelloWorld!&quot;\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4e0d\u4ec5\u53ef\u4ee5\u53bb\u6389\u7a7a\u683c\uff0c\u8fd8\u53ef\u4ee5\u5904\u7406\u5176\u4ed6\u7a7a\u767d\u5b57\u7b26\uff0c\u9002\u7528\u4e8e\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u5904\u7406\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5185\u7f6e\u65b9\u6cd5replace()\u3001split() [&hellip;]","protected":false},"author":3,"featured_media":976525,"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\/976518"}],"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=976518"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976518\/revisions"}],"predecessor-version":[{"id":976527,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976518\/revisions\/976527"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/976525"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=976518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=976518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=976518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}