{"id":1044697,"date":"2024-12-31T13:16:48","date_gmt":"2024-12-31T05:16:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1044697.html"},"modified":"2024-12-31T13:16:50","modified_gmt":"2024-12-31T05:16:50","slug":"%e5%a6%82%e4%bd%95%e8%ae%a9python%e5%8f%aa%e7%a9%ba%e4%b8%80%e6%a0%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1044697.html","title":{"rendered":"\u5982\u4f55\u8ba9python\u53ea\u7a7a\u4e00\u683c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/29b592d8-ea6e-48f1-aa22-6b0b0fd783a4.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u8ba9python\u53ea\u7a7a\u4e00\u683c\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u786e\u4fdd\u5b57\u7b26\u4e32\u4e2d\u4ec5\u6709\u4e00\u4e2a\u7a7a\u683c\u7684\u51e0\u79cd\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001split\u548cjoin\u65b9\u6cd5\u3001\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u66ff\u6362\u591a\u4e2a\u7a7a\u683c\u4e3a\u5355\u4e2a\u7a7a\u683c\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5339\u914d\u5b57\u7b26\u4e32\u6a21\u5f0f\u548c\u66ff\u6362\u5b57\u7b26\u4e32\u5185\u5bb9\u3002\u4f7f\u7528Python\u7684re\u6a21\u5757\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def ensure_single_space(text):<\/p>\n<p>    return re.sub(&#39; +&#39;, &#39; &#39;, text)<\/p>\n<p>text = &quot;This   is  a   sample   text.&quot;<\/p>\n<p>result = ensure_single_space(text)<\/p>\n<p>print(result)  # \u8f93\u51fa: &quot;This is a sample text.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u591a\u4e2a\u7a7a\u683c\u4e3a\u5355\u4e2a\u7a7a\u683c<\/strong>\uff1a\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9ad8\u6548\uff0c\u5c24\u5176\u9002\u5408\u5904\u7406\u5305\u542b\u5927\u91cf\u6587\u672c\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u975e\u5e38\u5f3a\u5927\u7684\u6587\u672c\u5904\u7406\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u5339\u914d\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u3002\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528re\u6a21\u5757\u6765\u5904\u7406\u6b63\u5219\u8868\u8fbe\u5f0f\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u786e\u4fdd\u5b57\u7b26\u4e32\u4e2d\u4ec5\u6709\u4e00\u4e2a\u7a7a\u683c\u7684\u5177\u4f53\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def ensure_single_space(text):<\/p>\n<p>    # \u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u591a\u4e2a\u7a7a\u683c\u4e3a\u5355\u4e2a\u7a7a\u683c<\/p>\n<p>    return re.sub(&#39; +&#39;, &#39; &#39;, text)<\/p>\n<p>text = &quot;This   is  a   sample   text.&quot;<\/p>\n<p>result = ensure_single_space(text)<\/p>\n<p>print(result)  # \u8f93\u51fa: &quot;This is a sample text.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5bfc\u5165\u4e86re\u6a21\u5757\uff0c\u7136\u540e\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3aensure_single_space\u7684\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u63a5\u53d7\u4e00\u4e2a\u5b57\u7b26\u4e32\u53c2\u6570text\u3002\u901a\u8fc7re.sub()\u51fd\u6570\uff0c\u6211\u4eec\u5c06\u6240\u6709\u8fde\u7eed\u7684\u7a7a\u683c\u66ff\u6362\u4e3a\u5355\u4e2a\u7a7a\u683c\u3002\u6700\u540e\uff0c\u6211\u4eec\u6d4b\u8bd5\u4e86\u8fd9\u4e2a\u51fd\u6570\uff0c\u5e76\u6253\u5370\u4e86\u5904\u7406\u540e\u7684\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528split\u548cjoin\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>split\u548cjoin\u65b9\u6cd5\u4e5f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5e38\u7528\u5de5\u5177\u3002\u6211\u4eec\u53ef\u4ee5\u5148\u4f7f\u7528split\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309\u7a7a\u683c\u5206\u5272\u6210\u5355\u8bcd\u5217\u8868\uff0c\u7136\u540e\u518d\u4f7f\u7528join\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5355\u8bcd\u62fc\u63a5\u6210\u4e00\u4e2a\u65b0\u5b57\u7b26\u4e32\uff0c\u4e2d\u95f4\u53ea\u4fdd\u7559\u4e00\u4e2a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def ensure_single_space(text):<\/p>\n<p>    # \u4f7f\u7528split\u548cjoin\u65b9\u6cd5\u786e\u4fdd\u53ea\u6709\u4e00\u4e2a\u7a7a\u683c<\/p>\n<p>    return &#39; &#39;.join(text.split())<\/p>\n<p>text = &quot;This   is  a   sample   text.&quot;<\/p>\n<p>result = ensure_single_space(text)<\/p>\n<p>print(result)  # \u8f93\u51fa: &quot;This is a sample text.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86text.split()\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309\u7a7a\u683c\u5206\u5272\u6210\u5355\u8bcd\u5217\u8868\uff0c\u7136\u540e\u518d\u4f7f\u7528&#39; &#39;.join()\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5355\u8bcd\u62fc\u63a5\u6210\u4e00\u4e2a\u65b0\u5b57\u7b26\u4e32\uff0c\u4e2d\u95f4\u53ea\u4fdd\u7559\u4e00\u4e2a\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u81ea\u5b9a\u4e49\u51fd\u6570<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u548c\u5185\u7f6e\u65b9\u6cd5\u5916\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5904\u7406\u5b57\u7b26\u4e32\u4e2d\u7684\u7a7a\u683c\u3002\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\uff0c\u6211\u4eec\u53ef\u4ee5\u624b\u52a8\u53bb\u9664\u591a\u4f59\u7684\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def ensure_single_space(text):<\/p>\n<p>    result = []<\/p>\n<p>    space_found = False<\/p>\n<p>    for char in text:<\/p>\n<p>        if char == &#39; &#39;:<\/p>\n<p>            if not space_found:<\/p>\n<p>                result.append(char)<\/p>\n<p>                space_found = True<\/p>\n<p>        else:<\/p>\n<p>            result.append(char)<\/p>\n<p>            space_found = False<\/p>\n<p>    return &#39;&#39;.join(result)<\/p>\n<p>text = &quot;This   is  a   sample   text.&quot;<\/p>\n<p>result = ensure_single_space(text)<\/p>\n<p>print(result)  # \u8f93\u51fa: &quot;This is a sample text.&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u540d\u4e3aensure_single_space\u7684\u51fd\u6570\uff0c\u5e76\u521d\u59cb\u5316\u4e86\u4e00\u4e2a\u7a7a\u5217\u8868result\u548c\u4e00\u4e2a\u5e03\u5c14\u53d8\u91cfspace_found\u3002\u5728\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e2a\u5b57\u7b26\u65f6\uff0c\u5982\u679c\u5b57\u7b26\u662f\u7a7a\u683c\u4e14\u4e4b\u524d\u6ca1\u6709\u9047\u5230\u7a7a\u683c\uff0c\u6211\u4eec\u5c06\u5176\u6dfb\u52a0\u5230result\u5217\u8868\u4e2d\uff0c\u5e76\u5c06space_found\u8bbe\u7f6e\u4e3aTrue\uff1b\u5982\u679c\u5b57\u7b26\u4e0d\u662f\u7a7a\u683c\uff0c\u6211\u4eec\u5c06\u5176\u6dfb\u52a0\u5230result\u5217\u8868\u4e2d\uff0c\u5e76\u5c06space_found\u8bbe\u7f6e\u4e3aFalse\u3002\u6700\u540e\uff0c\u6211\u4eec\u901a\u8fc7&#39;&#39;.join()\u65b9\u6cd5\u5c06result\u5217\u8868\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5e94\u7528\u573a\u666f\u548c\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u91cf\u3002\u5982\u679c\u5904\u7406\u7684\u662f\u8f83\u5c0f\u89c4\u6a21\u7684\u6570\u636e\uff0c\u4e09\u79cd\u65b9\u6cd5\u7684\u6027\u80fd\u5dee\u5f02\u4e0d\u5927\uff1b\u4f46\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u548csplit+join\u65b9\u6cd5\u901a\u5e38\u66f4\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5904\u7406\u5927\u89c4\u6a21\u6587\u672c\u6570\u636e<\/h4>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5927\u89c4\u6a21\u6587\u672c\u6570\u636e\u65f6\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u548csplit+join\u65b9\u6cd5\u901a\u5e38\u66f4\u9ad8\u6548\uff0c\u56e0\u4e3a\u5b83\u4eec\u4f7f\u7528\u4e86\u4f18\u5316\u7684\u5185\u7f6e\u51fd\u6570\u548c\u7b97\u6cd5\u3002\u81ea\u5b9a\u4e49\u51fd\u6570\u867d\u7136\u7075\u6d3b\uff0c\u4f46\u5728\u6027\u80fd\u4e0a\u53ef\u80fd\u7565\u900a\u4e00\u7b79\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5904\u7406\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u9996\u9009\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u8f7b\u677e\u5730\u5339\u914d\u548c\u66ff\u6362\u5404\u79cd\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\uff0c\u800csplit+join\u65b9\u6cd5\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u5728\u5904\u7406\u590d\u6742\u6a21\u5f0f\u65f6\u53ef\u80fd\u663e\u5f97\u529b\u4e0d\u4ece\u5fc3\u3002<\/p>\n<\/p>\n<p><h4>3\u3001\u6613\u7528\u6027\u548c\u53ef\u8bfb\u6027<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u5904\u7406\u4efb\u52a1\uff0csplit+join\u65b9\u6cd5\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u66f4\u5bb9\u6613\u7406\u89e3\u548c\u4f7f\u7528\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u867d\u7136\u5f3a\u5927\uff0c\u4f46\u8bed\u6cd5\u76f8\u5bf9\u590d\u6742\uff0c\u53ef\u80fd\u9700\u8981\u4e00\u5b9a\u7684\u5b66\u4e60\u6210\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u786e\u4fddPython\u5b57\u7b26\u4e32\u4e2d\u4ec5\u6709\u4e00\u4e2a\u7a7a\u683c\u7684\u65b9\u6cd5\u6709\u5f88\u591a\uff0c\u5e38\u89c1\u7684\u5305\u62ec\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001split\u548cjoin\u65b9\u6cd5\u4ee5\u53ca\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u6b63\u5219\u8868\u8fbe\u5f0f\u9002\u5408\u5904\u7406\u590d\u6742\u5b57\u7b26\u4e32\u6a21\u5f0f\uff0csplit+join\u65b9\u6cd5\u7b80\u5355\u6613\u7528\uff0c\u81ea\u5b9a\u4e49\u51fd\u6570\u7075\u6d3b\u6027\u5f3a\u3002\u5728\u9009\u62e9\u5177\u4f53\u65b9\u6cd5\u65f6\uff0c\u5e94\u6839\u636e\u5b9e\u9645\u9700\u6c42\u548c\u6570\u636e\u91cf\u7efc\u5408\u8003\u8651\u3002\u65e0\u8bba\u91c7\u7528\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u53ef\u4ee5\u6709\u6548\u5730\u786e\u4fdd\u5b57\u7b26\u4e32\u4e2d\u4ec5\u6709\u4e00\u4e2a\u7a7a\u683c\uff0c\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u5b57\u7b26\u4e32\u53ea\u7a7a\u4e00\u683c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6765\u66ff\u6362\u591a\u4e2a\u7a7a\u683c\u4e3a\u4e00\u4e2a\u7a7a\u683c\u3002\u4f8b\u5982\uff0c\u82e5\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u591a\u4e2a\u7a7a\u683c\uff0c\u53ef\u4ee5\u8fd9\u6837\u64cd\u4f5c\uff1a<\/p>\n<pre><code class=\"language-python\">original_string = &quot;\u8fd9\u662f   \u4e00\u4e2a  \u793a\u4f8b  \u5b57\u7b26\u4e32&quot;\nresult_string = &#39; &#39;.join(original_string.split())\nprint(result_string)  # \u8f93\u51fa\uff1a\u8fd9\u662f \u4e00\u4e2a \u793a\u4f8b \u5b57\u7b26\u4e32\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u5148\u5c06\u5b57\u7b26\u4e32\u5206\u5272\u6210\u5355\u8bcd\uff0c\u7136\u540e\u518d\u7528\u7a7a\u683c\u8fde\u63a5\uff0c\u786e\u4fdd\u4e86\u6bcf\u4e2a\u5355\u8bcd\u4e4b\u95f4\u53ea\u6709\u4e00\u4e2a\u7a7a\u683c\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u7528\u6237\u8f93\u5165\u7684\u591a\u7a7a\u683c\u60c5\u51b5\uff1f<\/strong><br \/>\u5904\u7406\u7528\u6237\u8f93\u5165\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>strip()<\/code>\u51fd\u6570\u53bb\u6389\u524d\u540e\u7a7a\u683c\uff0c\u5e76\u7ed3\u5408<code>split()<\/code>\u65b9\u6cd5\u6765\u81ea\u52a8\u5904\u7406\u591a\u4f59\u7684\u7a7a\u683c\u3002\u8fd9\u5c06\u4f7f\u5f97\u8f93\u5165\u66f4\u4e3a\u6574\u6d01\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">user_input = &quot;   \u8bf7\u8f93\u5165   \u4f60\u7684   \u540d\u5b57   &quot;\ncleaned_input = &#39; &#39;.join(user_input.strip().split())\nprint(cleaned_input)  # \u8f93\u51fa\uff1a\u8bf7\u8f93\u5165 \u4f60\u7684 \u540d\u5b57\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u7528\u6237\u8f93\u5165\u7684\u591a\u4f59\u7a7a\u683c\u4f1a\u88ab\u81ea\u52a8\u79fb\u9664\uff0c\u786e\u4fdd\u7a0b\u5e8f\u5904\u7406\u7684\u6570\u636e\u5e72\u51c0\u6574\u6d01\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u786e\u4fdd\u8f93\u51fa\u683c\u5f0f\u5316\u65f6\u53ea\u7a7a\u4e00\u683c\uff1f<\/strong><br \/>\u5728\u683c\u5f0f\u5316\u8f93\u51fa\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-string\uff09\u6216<code>str.format()<\/code>\u65b9\u6cd5\u6765\u63a7\u5236\u7a7a\u683c\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">name = &quot;\u5f20\u4e09&quot;\nage = 25\nformatted_string = f&quot;{name} {age}\u5c81&quot;\nprint(formatted_string)  # \u8f93\u51fa\uff1a\u5f20\u4e09 25\u5c81\n<\/code><\/pre>\n<p>\u4f7f\u7528f-string\u6216<code>str.format()<\/code>\u65f6\uff0c\u53ef\u4ee5\u7075\u6d3b\u63a7\u5236\u8f93\u51fa\u7684\u683c\u5f0f\uff0c\u786e\u4fdd\u5404\u90e8\u5206\u4e4b\u95f4\u53ea\u6709\u4e00\u4e2a\u7a7a\u683c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u786e\u4fdd\u5b57\u7b26\u4e32\u4e2d\u4ec5\u6709\u4e00\u4e2a\u7a7a\u683c\u7684\u51e0\u79cd\u5e38\u89c1\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u3001split\u548cjoin\u65b9\u6cd5\u3001\u4ee5\u53ca\u81ea\u5b9a [&hellip;]","protected":false},"author":3,"featured_media":1044701,"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\/1044697"}],"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=1044697"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1044697\/revisions"}],"predecessor-version":[{"id":1044704,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1044697\/revisions\/1044704"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1044701"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1044697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1044697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1044697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}