{"id":1084282,"date":"2025-01-08T13:05:52","date_gmt":"2025-01-08T05:05:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1084282.html"},"modified":"2025-01-08T13:05:54","modified_gmt":"2025-01-08T05:05:54","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%8e%bb%e6%8e%89-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1084282.html","title":{"rendered":"python\u5982\u4f55\u5c06\u6362\u884c\u7b26\u53bb\u6389"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24194719\/ceec4234-18a3-4035-bd59-16069d13037a.webp\" alt=\"python\u5982\u4f55\u5c06\u6362\u884c\u7b26\u53bb\u6389\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528replace()\u65b9\u6cd5\u3001strip()\u65b9\u6cd5\u3001re\u6a21\u5757\u53bb\u9664\u6362\u884c\u7b26\u3002<\/strong> \u5176\u4e2d\uff0c\u4f7f\u7528replace()\u65b9\u6cd5\u662f\u6700\u5e38\u89c1\u4e14\u76f4\u63a5\u7684\u4e00\u79cd\u65b9\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u51e0\u79cd\u65b9\u6cd5\u5e76\u7ed9\u51fa\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528replace()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528replace()\u65b9\u6cd5\u53ef\u4ee5\u76f4\u63a5\u66ff\u6362\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u5728\u4e8e\u7b80\u6d01\u3001\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello\\nWorld\\nPython&quot;<\/p>\n<p>new_text = text.replace(&#39;\\n&#39;, &#39;&#39;)<\/p>\n<p>print(new_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u5c06\u5b57\u7b26\u4e32text\u4e2d\u7684\u6240\u6709\u6362\u884c\u7b26<code>\\n<\/code>\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u6240\u6709\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528strip()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>strip()\u65b9\u6cd5\u7528\u4e8e\u53bb\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u548c\u7ed3\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26\uff0c\u5305\u62ec\u6362\u884c\u7b26\u3002\u53ef\u4ee5\u7ed3\u5408\u5176\u4ed6\u65b9\u6cd5\u4e00\u8d77\u4f7f\u7528\u6765\u53bb\u9664\u4e2d\u95f4\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;\\nHello\\nWorld\\nPython\\n&quot;<\/p>\n<p>new_text = text.strip()<\/p>\n<p>print(new_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u8fd9\u4e2a\u65b9\u6cd5\u53ea\u4f1a\u53bb\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u548c\u7ed3\u5c3e\u7684\u6362\u884c\u7b26\uff0c\u4e0d\u4f1a\u5f71\u54cd\u4e2d\u95f4\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528re\u6a21\u5757<\/h3>\n<\/p>\n<p><p>re\u6a21\u5757\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u5339\u914d\u548c\u66ff\u6362\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;Hello\\nWorld\\nPython&quot;<\/p>\n<p>new_text = re.sub(r&#39;\\n&#39;, &#39;&#39;, text)<\/p>\n<p>print(new_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u901a\u8fc7\u4f7f\u7528re.sub()\u51fd\u6570\uff0c\u53ef\u4ee5\u5339\u914d\u6240\u6709\u7684\u6362\u884c\u7b26<code>\\n<\/code>\u5e76\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u53bb\u9664\u6240\u6709\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8be6\u7ec6\u4ecb\u7ecdreplace()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>replace()\u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u4e0b\u9762\u6211\u4eec\u8be6\u7ec6\u4ecb\u7ecd\u4e00\u4e0b\u5b83\u7684\u7528\u6cd5\u53ca\u5176\u6269\u5c55\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u57fa\u672c\u7528\u6cd5<\/h4>\n<\/p>\n<p><p>replace()\u65b9\u6cd5\u7684\u57fa\u672c\u8bed\u6cd5\u662f<code>str.replace(old, new[, count])<\/code>\uff0c\u5176\u4e2d<code>old<\/code>\u662f\u8981\u66ff\u6362\u7684\u5b50\u5b57\u7b26\u4e32\uff0c<code>new<\/code>\u662f\u66ff\u6362\u540e\u7684\u5b50\u5b57\u7b26\u4e32\uff0c<code>count<\/code>\u662f\u53ef\u9009\u53c2\u6570\uff0c\u8868\u793a\u66ff\u6362\u7684\u6b21\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello\\nWorld\\nPython&quot;<\/p>\n<p>new_text = text.replace(&#39;\\n&#39;, &#39;&#39;)<\/p>\n<p>print(new_text)  # \u8f93\u51fa\uff1aHelloWorldPython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u6307\u5b9a\u66ff\u6362\u6b21\u6570<\/h4>\n<\/p>\n<p><p>\u901a\u8fc7\u6307\u5b9acount\u53c2\u6570\uff0c\u53ef\u4ee5\u63a7\u5236\u66ff\u6362\u7684\u6b21\u6570\u3002\u4f8b\u5982\uff0c\u53ea\u66ff\u6362\u7b2c\u4e00\u6b21\u51fa\u73b0\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello\\nWorld\\nPython&quot;<\/p>\n<p>new_text = text.replace(&#39;\\n&#39;, &#39;&#39;, 1)<\/p>\n<p>print(new_text)  # \u8f93\u51fa\uff1aHelloWorld\\nPython<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u53bb\u9664\u6362\u884c\u7b26<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u7684\u65b9\u6cd5\u53ef\u4ee5\u53bb\u9664\u6362\u884c\u7b26\uff0c\u6bd4\u5982\u4f7f\u7528split()\u548cjoin()\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello\\nWorld\\nPython&quot;<\/p>\n<p>new_text = &#39;&#39;.join(text.split())<\/p>\n<p>print(new_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u8fd9\u4e2a\u65b9\u6cd5\u5148\u4f7f\u7528split()\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309\u6362\u884c\u7b26\u5206\u5272\u6210\u4e00\u4e2a\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528join()\u65b9\u6cd5\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u91cd\u65b0\u8fde\u63a5\u6210\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u4e2d\u95f4\u4e0d\u52a0\u4efb\u4f55\u5206\u9694\u7b26\uff0c\u4ece\u800c\u53bb\u9664\u6240\u6709\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53bb\u9664\u6362\u884c\u7b26\u53ef\u80fd\u4f1a\u5728\u4ee5\u4e0b\u51e0\u79cd\u573a\u666f\u4e2d\u51fa\u73b0\uff1a<\/p>\n<\/p>\n<p><h4>1\u3001\u5904\u7406\u6587\u672c\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u5728\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u65f6\uff0c\u901a\u5e38\u4f1a\u9047\u5230\u6362\u884c\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0a\u8ff0\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;file.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    lines = file.readlines()<\/p>\n<p>    new_lines = [line.replace(&#39;\\n&#39;, &#39;&#39;) for line in lines]<\/p>\n<p>    print(new_lines)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u7528\u6237\u8f93\u5165<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u53bb\u9664\u6362\u884c\u7b26\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8fdb\u4e00\u6b65\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;Enter some text: &quot;)<\/p>\n<p>clean_input = user_input.replace(&#39;\\n&#39;, &#39;&#39;)<\/p>\n<p>print(clean_input)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5728\u9009\u62e9\u53bb\u9664\u6362\u884c\u7b26\u7684\u65b9\u6cd5\u65f6\uff0c\u8fd8\u9700\u8981\u8003\u8651\u6027\u80fd\u95ee\u9898\u3002\u5bf9\u4e8e\u8f83\u5927\u7684\u5b57\u7b26\u4e32\uff0creplace()\u65b9\u6cd5\u901a\u5e38\u4f1a\u6bd4\u5176\u4ed6\u65b9\u6cd5\u66f4\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import time<\/p>\n<p>text = &quot;Hello\\nWorld\\nPython&quot; * 10000<\/p>\n<p>start_time = time.time()<\/p>\n<p>new_text = text.replace(&#39;\\n&#39;, &#39;&#39;)<\/p>\n<p>end_time = time.time()<\/p>\n<p>print(&quot;Replace method time:&quot;, end_time - start_time)<\/p>\n<p>start_time = time.time()<\/p>\n<p>new_text = &#39;&#39;.join(text.split())<\/p>\n<p>end_time = time.time()<\/p>\n<p>print(&quot;Split and join method time:&quot;, end_time - start_time)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u901a\u8fc7\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6267\u884c\u65f6\u95f4\uff0c\u53ef\u4ee5\u9009\u62e9\u6027\u80fd\u66f4\u4f18\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001\u5904\u7406\u5176\u4ed6\u7c7b\u578b\u7684\u6362\u884c\u7b26<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6587\u672c\u4e2d\u53ef\u80fd\u5305\u542b\u5176\u4ed6\u7c7b\u578b\u7684\u6362\u884c\u7b26\uff0c\u6bd4\u5982\u56de\u8f66\u7b26\uff08<code>\\r<\/code>\uff09\u6216\u56de\u8f66\u6362\u884c\u7b26\uff08<code>\\r\\n<\/code>\uff09\u3002\u53ef\u4ee5\u6269\u5c55replace()\u65b9\u6cd5\u6765\u5904\u7406\u8fd9\u4e9b\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello\\rWorld\\r\\nPython&quot;<\/p>\n<p>new_text = text.replace(&#39;\\r\\n&#39;, &#39;&#39;).replace(&#39;\\r&#39;, &#39;&#39;).replace(&#39;\\n&#39;, &#39;&#39;)<\/p>\n<p>print(new_text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u89e3\u91ca\uff1a<\/strong> \u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u5148\u66ff\u6362\u56de\u8f66\u6362\u884c\u7b26\uff0c\u7136\u540e\u66ff\u6362\u56de\u8f66\u7b26\uff0c\u6700\u540e\u66ff\u6362\u6362\u884c\u7b26\uff0c\u4ece\u800c\u53bb\u9664\u6240\u6709\u7c7b\u578b\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u6709\u6548\u5730\u53bb\u9664Python\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\u3002\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u9009\u62e9\u4e0d\u540c\u7684\u65b9\u6cd5\u8fdb\u884c\u5904\u7406\u3002<strong>replace()\u65b9\u6cd5<\/strong>\u662f\u6700\u5e38\u7528\u4e14\u9ad8\u6548\u7684\u4e00\u79cd\u65b9\u5f0f\uff0c<strong>re\u6a21\u5757<\/strong>\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\uff0c<strong>strip()\u65b9\u6cd5<\/strong>\u9002\u7528\u4e8e\u53bb\u9664\u5f00\u5934\u548c\u7ed3\u5c3e\u7684\u6362\u884c\u7b26\uff0c\u800c<strong>split()\u548cjoin()\u65b9\u6cd5<\/strong>\u5219\u9002\u7528\u4e8e\u5904\u7406\u8f83\u5927\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u53bb\u9664\u6362\u884c\u7b26\u662f\u6587\u672c\u5904\u7406\u4e2d\u7684\u5e38\u89c1\u9700\u6c42\uff0c\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u5904\u7406\u5b57\u7b26\u4e32\u7684\u6548\u7387\u548c\u7075\u6d3b\u6027\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fd8\u9700\u8981\u6839\u636e\u5177\u4f53\u7684\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u5b9e\u73b0\u3002\u6700\u5e38\u7528\u7684\u65b9\u5f0f\u662f\u4f7f\u7528<code>str.replace()<\/code>\u65b9\u6cd5\u6765\u5c06\u6362\u884c\u7b26\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>string.replace(&#39;\\n&#39;, &#39;&#39;)<\/code>\u6765\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6362\u884c\u7b26\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>str.splitlines()<\/code>\u65b9\u6cd5\u4e5f\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5217\u8868\uff0c\u968f\u540e\u518d\u7528<code>str.join()<\/code>\u5c06\u5176\u91cd\u65b0\u5408\u5e76\u4e3a\u4e00\u4e2a\u6ca1\u6709\u6362\u884c\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u53bb\u6389\u6362\u884c\u7b26\u540e\uff0c\u5982\u4f55\u4fdd\u6301\u5b57\u7b26\u4e32\u7684\u683c\u5f0f\uff1f<\/strong><br \/>\u5728\u53bb\u6389\u6362\u884c\u7b26\u540e\uff0c\u53ef\u80fd\u4f1a\u5f71\u54cd\u5b57\u7b26\u4e32\u7684\u53ef\u8bfb\u6027\u3002\u5982\u679c\u9700\u8981\u5728\u53bb\u6389\u6362\u884c\u7b26\u7684\u540c\u65f6\u4fdd\u6301\u67d0\u79cd\u683c\u5f0f\uff0c\u53ef\u4ee5\u8003\u8651\u4f7f\u7528\u7a7a\u683c\u6765\u66ff\u4ee3\u6362\u884c\u7b26\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>string.replace(&#39;\\n&#39;, &#39; &#39;)<\/code>\u5c06\u6362\u884c\u7b26\u66ff\u6362\u4e3a\u7a7a\u683c\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u4fdd\u6301\u5185\u5bb9\u7684\u8fde\u8d2f\u6027\u3002<\/p>\n<p><strong>\u6709\u6ca1\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>str.replace()<\/code>\u548c<code>str.splitlines()<\/code>\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u53bb\u6389\u6362\u884c\u7b26\u3002\u901a\u8fc7<code>import re<\/code>\u5bfc\u5165\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>re.sub(r&#39;\\n&#39;, &#39;&#39;, your_string)<\/code>\u6765\u53bb\u9664\u6240\u6709\u6362\u884c\u7b26\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32\u65f6\u5c24\u5176\u6709\u6548\uff0c\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u63a7\u5236\u5339\u914d\u6a21\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528replace()\u65b9\u6cd5\u3001strip()\u65b9\u6cd5\u3001re\u6a21\u5757\u53bb\u9664\u6362\u884c\u7b26\u3002 \u5176\u4e2d\uff0c\u4f7f\u7528re [&hellip;]","protected":false},"author":3,"featured_media":1084288,"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\/1084282"}],"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=1084282"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084282\/revisions"}],"predecessor-version":[{"id":1084290,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1084282\/revisions\/1084290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1084288"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1084282"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1084282"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1084282"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}