{"id":961663,"date":"2024-12-27T04:00:51","date_gmt":"2024-12-26T20:00:51","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/961663.html"},"modified":"2024-12-27T04:00:52","modified_gmt":"2024-12-26T20:00:52","slug":"python%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e5%a4%9a%e8%a1%8c%e7%bc%a9%e8%bf%9b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/961663.html","title":{"rendered":"python\u5982\u4f55\u5220\u9664\u591a\u884c\u7f29\u8fdb"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103831\/d0563ef7-53fc-4b6b-ae22-bf0b3507b674.webp\" alt=\"python\u5982\u4f55\u5220\u9664\u591a\u884c\u7f29\u8fdb\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5220\u9664\u591a\u884c\u7f29\u8fdb\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9e\u73b0\u3001<code>textwrap.dedent<\/code>\u662fPython\u5185\u7f6e\u6a21\u5757\u4e2d\u5904\u7406\u7f29\u8fdb\u7684\u6709\u6548\u5de5\u5177\u3001\u901a\u8fc7\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32\u5e76\u53bb\u9664\u524d\u5bfc\u7a7a\u683c\u4e5f\u662f\u4e00\u79cd\u53ef\u884c\u7684\u65b9\u6cd5\u3002<\/strong> <code>textwrap.dedent<\/code> \u662f\u6700\u5e38\u7528\u4e14\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u80fd\u591f\u81ea\u52a8\u68c0\u6d4b\u5e76\u53bb\u9664\u6587\u672c\u4e2d\u6bcf\u4e00\u884c\u7684\u516c\u5171\u524d\u5bfc\u7a7a\u683c\u3002\u672c\u6587\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5229\u7528\u8fd9\u4e9b\u65b9\u6cd5\u6765\u5220\u9664\u591a\u884c\u7f29\u8fdb\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528 <code>textwrap.dedent<\/code><\/p>\n<\/p>\n<p><p>Python\u7684 <code>textwrap<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86 <code>dedent<\/code> \u51fd\u6570\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u53bb\u9664\u6587\u672c\u4e2d\u6bcf\u4e00\u884c\u7684\u516c\u5171\u524d\u5bfc\u7a7a\u683c\u3002\u8fd9\u4e2a\u51fd\u6570\u5bf9\u4e8e\u683c\u5f0f\u5316\u591a\u884c\u5b57\u7b26\u4e32\u7279\u522b\u6709\u7528\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u4fdd\u6301\u4ee3\u7801\u5757\u6216\u5b57\u7b26\u4e32\u7684\u76f8\u5bf9\u7f29\u8fdb\u65f6\u3002<\/p>\n<\/p>\n<p><p><code>textwrap.dedent<\/code> \u7684\u4f7f\u7528\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5c06\u591a\u884c\u5b57\u7b26\u4e32\u4f20\u9012\u7ed9\u5b83\uff0c\u5b83\u5c06\u8fd4\u56de\u4e00\u4e2a\u53bb\u6389\u516c\u5171\u7f29\u8fdb\u7684\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import textwrap<\/p>\n<p>text = &quot;&quot;&quot;<\/p>\n<p>    def foo():<\/p>\n<p>        print(&quot;Hello, World!&quot;)<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<p>dedented_text = textwrap.dedent(text)<\/p>\n<p>print(dedented_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>dedent<\/code> \u51fd\u6570\u53bb\u9664\u4e86\u6240\u6709\u884c\u7684\u516c\u5171\u524d\u5bfc\u7a7a\u683c\uff0c\u4f7f\u5f97\u5b57\u7b26\u4e32\u53ef\u4ee5\u6b63\u786e\u663e\u793a\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u6587\u672c\u64cd\u4f5c\uff0c\u5305\u62ec\u5220\u9664\u7f29\u8fdb\u3002\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>re<\/code> \u6a21\u5757\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u7075\u6d3b\u5730\u53bb\u9664\u591a\u884c\u5b57\u7b26\u4e32\u7684\u7f29\u8fdb\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\u4ee3\u7801\uff0c\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u9664\u7f29\u8fdb\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;&quot;&quot;<\/p>\n<p>    def foo():<\/p>\n<p>        print(&quot;Hello, World!&quot;)<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53bb\u9664\u7f29\u8fdb<\/strong><\/h2>\n<p>dedented_text = re.sub(r&#39;^\\s+&#39;, &#39;&#39;, text, flags=re.MULTILINE)<\/p>\n<p>print(dedented_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.sub<\/code> \u51fd\u6570\u7528\u4e8e\u66ff\u6362\u6bcf\u4e00\u884c\u7684\u524d\u5bfc\u7a7a\u683c\uff0c\u4ece\u800c\u8fbe\u5230\u53bb\u9664\u7f29\u8fdb\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5982\u4e0a\u8ff0\u65b9\u6cd5\u7b80\u4fbf\uff0c\u4f46\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32\u5e76\u53bb\u9664\u524d\u5bfc\u7a7a\u683c\u4e5f\u662f\u4e00\u79cd\u53ef\u884c\u7684\u65b9\u6cd5\u3002\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u548c\u63a7\u5236\u3002<\/p>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u624b\u52a8\u53bb\u9664\u7f29\u8fdb\u7684\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;&quot;&quot;<\/p>\n<p>    def foo():<\/p>\n<p>        print(&quot;Hello, World!&quot;)<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u624b\u52a8\u53bb\u9664\u7f29\u8fdb<\/strong><\/h2>\n<p>lines = text.splitlines()<\/p>\n<p>dedented_lines = [line.lstrip() for line in lines]<\/p>\n<p>dedented_text = &#39;\\n&#39;.join(dedented_lines)<\/p>\n<p>print(dedented_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u5b57\u7b26\u4e32\u62c6\u5206\u4e3a\u884c\uff0c\u7136\u540e\u4f7f\u7528\u5217\u8868\u89e3\u6790\u6765\u53bb\u9664\u6bcf\u4e00\u884c\u7684\u524d\u5bfc\u7a7a\u683c\uff0c\u6700\u540e\u5c06\u5b83\u4eec\u91cd\u65b0\u7ec4\u5408\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u6b8a\u60c5\u51b5<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u65f6\uff0c\u6709\u4e9b\u7279\u6b8a\u60c5\u51b5\u9700\u8981\u6ce8\u610f\uff0c\u6bd4\u5982\u5b57\u7b26\u4e32\u4e2d\u6df7\u6742\u7740\u4e0d\u540c\u7684\u7f29\u8fdb\u7ea7\u522b\uff0c\u6216\u8005\u67d0\u4e9b\u884c\u4e0d\u9700\u8981\u53bb\u9664\u7f29\u8fdb\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u4e0d\u540c\u7684\u65b9\u6cd5\uff0c\u6216\u8005\u5728\u53bb\u9664\u7f29\u8fdb\u4e4b\u524d\u8fdb\u884c\u9884\u5904\u7406\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6df7\u5408\u7f29\u8fdb\u7ea7\u522b<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u5b58\u5728\u6df7\u5408\u7f29\u8fdb\u7ea7\u522b\uff0c\u53ef\u4ee5\u5148\u4f7f\u7528 <code>textwrap.dedent<\/code> \u53bb\u9664\u516c\u5171\u7f29\u8fdb\uff0c\u7136\u540e\u9488\u5bf9\u5269\u4f59\u7684\u7f29\u8fdb\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import textwrap<\/p>\n<p>text = &quot;&quot;&quot;<\/p>\n<p>    def foo():<\/p>\n<p>        if True:<\/p>\n<p>            print(&quot;Hello, World!&quot;)<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<h2><strong>\u53bb\u9664\u516c\u5171\u7f29\u8fdb<\/strong><\/h2>\n<p>dedented_text = textwrap.dedent(text)<\/p>\n<h2><strong>\u8fdb\u4e00\u6b65\u5904\u7406\u6df7\u5408\u7f29\u8fdb<\/strong><\/h2>\n<p>lines = dedented_text.splitlines()<\/p>\n<p>processed_lines = [line.lstrip() for line in lines]<\/p>\n<p>processed_text = &#39;\\n&#39;.join(processed_lines)<\/p>\n<p>print(processed_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u9009\u62e9\u6027\u53bb\u9664\u7f29\u8fdb<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u53ea\u9700\u8981\u5bf9\u7279\u5b9a\u7684\u884c\u53bb\u9664\u7f29\u8fdb\u3002\u53ef\u4ee5\u901a\u8fc7\u6761\u4ef6\u5224\u65ad\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;&quot;&quot;<\/p>\n<p>    def foo():<\/p>\n<p>        # Keep this comment<\/p>\n<p>        print(&quot;Hello, World!&quot;)<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<p>lines = text.splitlines()<\/p>\n<p>processed_lines = [line.lstrip() if not line.strip().startswith(&#39;#&#39;) else line for line in lines]<\/p>\n<p>processed_text = &#39;\\n&#39;.join(processed_lines)<\/p>\n<p>print(processed_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4fdd\u7559\u4e86\u4ee5 <code>#<\/code> \u5f00\u5934\u7684\u6ce8\u91ca\u884c\u7684\u7f29\u8fdb\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5220\u9664\u591a\u884c\u7f29\u8fdb\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u9009\u62e9\uff0c\u5305\u62ec <code>textwrap.dedent<\/code>\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u7684\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u5927\u591a\u6570\u60c5\u51b5\uff0c<code>textwrap.dedent<\/code> \u662f\u9996\u9009\uff0c\u56e0\u4e3a\u5b83\u7b80\u6d01\u660e\u4e86\u4e14\u6613\u4e8e\u4f7f\u7528\u3002\u800c\u6b63\u5219\u8868\u8fbe\u5f0f\u5219\u9002\u7528\u4e8e\u9700\u8981\u66f4\u591a\u81ea\u5b9a\u4e49\u884c\u4e3a\u7684\u573a\u666f\u3002\u624b\u52a8\u904d\u5386\u5b57\u7b26\u4e32\u867d\u7136\u4e0d\u5982\u524d\u4e24\u79cd\u65b9\u6cd5\u9ad8\u6548\uff0c\u4f46\u5728\u9700\u8981\u7cbe\u7ec6\u63a7\u5236\u7684\u60c5\u51b5\u4e0b\u4ecd\u7136\u662f\u4e00\u4e2a\u6709\u7528\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>\u6700\u540e\uff0c\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u6b8a\u60c5\u51b5\u65f6\uff0c\u9700\u8981\u7ed3\u5408\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u4ee5\u786e\u4fdd\u6700\u7ec8\u7684\u7ed3\u679c\u7b26\u5408\u9884\u671f\u3002\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\u540e\uff0c\u60a8\u5c06\u80fd\u591f\u66f4\u6709\u6548\u5730\u5904\u7406Python\u4e2d\u7684\u591a\u884c\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5220\u9664\u591a\u884c\u6587\u672c\u4e2d\u7684\u7f29\u8fdb\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>strip()<\/code>\u3001<code>lstrip()<\/code>\u548c<code>rstrip()<\/code>\u65b9\u6cd5\u6765\u53bb\u9664\u591a\u884c\u6587\u672c\u7684\u7f29\u8fdb\u3002\u7ed3\u5408<code>splitlines()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u5c06\u6587\u672c\u6309\u884c\u5206\u5272\uff0c\u518d\u5bf9\u6bcf\u4e00\u884c\u8fdb\u884c\u5904\u7406\uff0c\u6700\u540e\u5c06\u5904\u7406\u540e\u7684\u884c\u5408\u5e76\u56de\u53bb\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">text = &quot;&quot;&quot;    \u7b2c\u4e00\u884c\n    \u7b2c\u4e8c\u884c\n    \u7b2c\u4e09\u884c&quot;&quot;&quot;\ncleaned_text = &quot;\\n&quot;.join(line.lstrip() for line in text.splitlines())\nprint(cleaned_text)\n<\/code><\/pre>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u7684\u7f29\u8fdb\u95ee\u9898\uff1f<\/strong><br \/>\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\u7684\u7f29\u8fdb\u95ee\u9898\u53ef\u4ee5\u4f7f\u7528<code>textwrap<\/code>\u6a21\u5757\u4e2d\u7684<code>dedent()<\/code>\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u81ea\u52a8\u53bb\u9664\u6240\u6709\u884c\u7684\u5171\u540c\u524d\u7f00\u7f29\u8fdb\uff0c\u4f7f\u5f97\u6587\u672c\u66f4\u52a0\u6574\u6d01\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import textwrap\n\ntext = &quot;&quot;&quot;\\\n    \u8fd9\u662f\u7b2c\u4e00\u884c\n    \u8fd9\u662f\u7b2c\u4e8c\u884c\n    \u8fd9\u662f\u7b2c\u4e09\u884c\n&quot;&quot;&quot;\ncleaned_text = textwrap.dedent(text)\nprint(cleaned_text)\n<\/code><\/pre>\n<p><strong>\u6709\u4ec0\u4e48\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u6211\u5728Python\u4e2d\u5feb\u901f\u5220\u9664\u591a\u884c\u7f29\u8fdb\uff1f<\/strong><br \/>\u4f7f\u7528IDE\u6216\u6587\u672c\u7f16\u8f91\u5668\u7684\u67e5\u627e\u548c\u66ff\u6362\u529f\u80fd\uff0c\u914d\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u5feb\u901f\u5220\u9664\u591a\u884c\u7f29\u8fdb\u3002\u4f8b\u5982\uff0c\u5728VSCode\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<code>^\\s+<\/code>\u6765\u5339\u914d\u6bcf\u884c\u5f00\u5934\u7684\u7a7a\u767d\u5b57\u7b26\uff0c\u5e76\u5c06\u5176\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u5904\u7406\u8f83\u5927\u7684\u6587\u672c\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5220\u9664\u591a\u884c\u7f29\u8fdb\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u5b57\u7b26\u4e32\u65b9\u6cd5\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5b9e\u73b0\u3001textwrap.dedent\u662fPyth [&hellip;]","protected":false},"author":3,"featured_media":961666,"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\/961663"}],"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=961663"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/961663\/revisions"}],"predecessor-version":[{"id":961669,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/961663\/revisions\/961669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/961666"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=961663"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=961663"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=961663"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}