{"id":1145325,"date":"2025-01-08T23:07:16","date_gmt":"2025-01-08T15:07:16","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1145325.html"},"modified":"2025-01-08T23:07:19","modified_gmt":"2025-01-08T15:07:19","slug":"python-%e5%a6%82%e4%bd%95%e6%94%b9%e5%8f%98%e5%ad%97%e7%ac%a6%e4%b8%b2%e4%b8%ad%e6%9f%90%e4%b8%80%e4%b8%aa%e5%80%bc","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1145325.html","title":{"rendered":"python \u5982\u4f55\u6539\u53d8\u5b57\u7b26\u4e32\u4e2d\u67d0\u4e00\u4e2a\u503c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24181951\/7cbaff03-a0aa-4809-b0e1-6eedb9f41cec.webp\" alt=\"python \u5982\u4f55\u6539\u53d8\u5b57\u7b26\u4e32\u4e2d\u67d0\u4e00\u4e2a\u503c\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u6539\u53d8\u5b57\u7b26\u4e32\u4e2d\u7684\u67d0\u4e00\u4e2a\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u3001\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u3001\u6216\u8005\u5229\u7528\u5217\u8868\u8f6c\u6362\u7684\u65b9\u6cd5\u3002<\/strong> \u7531\u4e8e\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684\u7c7b\u578b\uff0c\u6240\u4ee5\u4f60\u4e0d\u80fd\u76f4\u63a5\u4fee\u6539\u5b57\u7b26\u4e32\u4e2d\u7684\u67d0\u4e2a\u5b57\u7b26\uff0c\u800c\u662f\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u8bf4\u660e\u5982\u4f55\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><p><strong>\u5b57\u7b26\u4e32\u5207\u7247\u65b9\u6cd5\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u624b\u6bb5<\/strong>\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u5206\u4e3a\u4e24\u90e8\u5206\uff0c\u66ff\u6362\u4e2d\u95f4\u7684\u5b57\u7b26\uff0c\u7136\u540e\u5c06\u4e09\u90e8\u5206\u91cd\u65b0\u7ec4\u5408\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u76f4\u89c2\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u5355\u4e2a\u5b57\u7b26\u7684\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u6df1\u5165\u63a2\u8ba8\u4e0d\u540c\u7684\u65b9\u6cd5\u53ca\u5176\u5b9e\u73b0\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b57\u7b26\u4e32\u5207\u7247\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u5207\u7247\u662f\u4e00\u79cd\u7b80\u5355\u4e14\u76f4\u89c2\u7684\u65b9\u6cd5\u3002\u4f60\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u5206\u4e3a\u4e09\u90e8\u5206\uff1a\u66ff\u6362\u5b57\u7b26\u4e4b\u524d\u7684\u90e8\u5206\u3001\u66ff\u6362\u5b57\u7b26\u672c\u8eab\u3001\u66ff\u6362\u5b57\u7b26\u4e4b\u540e\u7684\u90e8\u5206\u3002\u7136\u540e\u5c06\u5b83\u4eec\u7ec4\u5408\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def replace_char_in_string(s, index, new_char):<\/p>\n<p>    if not (0 &lt;= index &lt; len(s)):<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se ValueError(&quot;Index out of range&quot;)<\/p>\n<p>    return s[:index] + new_char + s[index+1:]<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>new_string = replace_char_in_string(original_string, 1, &#39;a&#39;)<\/p>\n<p>print(new_string)  # hallo<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u867d\u7136\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u4e3b\u8981\u7528\u4e8e\u66ff\u6362\u5b50\u5b57\u7b26\u4e32\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u66ff\u6362\u5355\u4e2a\u5b57\u7b26\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528<code>str.replace(old, new, count)<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u67d0\u4e2a\u5b57\u7b26\u66ff\u6362\u4e3a\u53e6\u4e00\u4e2a\u5b57\u7b26\u3002\u4e0d\u8fc7\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u4f1a\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u5339\u914d\u7684\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def replace_char(s, old_char, new_char):<\/p>\n<p>    return s.replace(old_char, new_char)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>new_string = replace_char(original_string, &#39;l&#39;, &#39;x&#39;)<\/p>\n<p>print(new_string)  # hexxo<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u5229\u7528\u5217\u8868\u8f6c\u6362\u7684\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u7531\u4e8e\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u800c\u5217\u8868\u662f\u53ef\u53d8\u7684\uff0c\u4f60\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5217\u8868\uff0c\u4fee\u6539\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u7136\u540e\u518d\u5c06\u5217\u8868\u8f6c\u6362\u56de\u5b57\u7b26\u4e32\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u9700\u8981\u8fdb\u884c\u591a\u6b21\u4fee\u6539\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def replace_char_using_list(s, index, new_char):<\/p>\n<p>    if not (0 &lt;= index &lt; len(s)):<\/p>\n<p>        raise ValueError(&quot;Index out of range&quot;)<\/p>\n<p>    s_list = list(s)<\/p>\n<p>    s_list[index] = new_char<\/p>\n<p>    return &#39;&#39;.join(s_list)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>new_string = replace_char_using_list(original_string, 1, &#39;a&#39;)<\/p>\n<p>print(new_string)  # hallo<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u4e5f\u662f\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u5f0f\uff0c\u5c24\u5176\u662f\u5728\u9700\u8981\u52a8\u6001\u751f\u6210\u5b57\u7b26\u4e32\u7684\u573a\u666f\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u65b9\u6cd5\u6765\u6784\u5efa\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def replace_char_with_format(s, index, new_char):<\/p>\n<p>    if not (0 &lt;= index &lt; len(s)):<\/p>\n<p>        raise ValueError(&quot;Index out of range&quot;)<\/p>\n<p>    return f&quot;{s[:index]}{new_char}{s[index+1:]}&quot;<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>new_string = replace_char_with_format(original_string, 1, &#39;a&#39;)<\/p>\n<p>print(new_string)  # hallo<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362<\/h3>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5f3a\u5927\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\u529f\u80fd\u3002\u901a\u8fc7<code>re<\/code>\u6a21\u5757\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u8fdb\u884c\u590d\u6742\u7684\u5b57\u7b26\u4e32\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def replace_char_with_regex(s, index, new_char):<\/p>\n<p>    if not (0 &lt;= index &lt; len(s)):<\/p>\n<p>        raise ValueError(&quot;Index out of range&quot;)<\/p>\n<p>    pattern = re.compile(f&quot;(.{{{index}}}).(.{{{len(s) - index - 1}}})&quot;)<\/p>\n<p>    return pattern.sub(rf&quot;\\1{new_char}\\2&quot;, s)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>new_string = replace_char_with_regex(original_string, 1, &#39;a&#39;)<\/p>\n<p>print(new_string)  # hallo<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u66ff\u6362\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u662f\u4e00\u4e2a\u9700\u8981\u8003\u8651\u7684\u56e0\u7d20\u3002\u7279\u522b\u662f\u5728\u5904\u7406\u5927\u6570\u636e\u6216\u5728\u6027\u80fd\u654f\u611f\u7684\u5e94\u7528\u573a\u666f\u4e2d\uff0c\u4e0d\u540c\u65b9\u6cd5\u7684\u6548\u7387\u53ef\u80fd\u4f1a\u6709\u6240\u4e0d\u540c\u3002\u901a\u8fc7\u4ee5\u4e0b\u793a\u4f8b\uff0c\u6211\u4eec\u53ef\u4ee5\u6bd4\u8f83\u4e0d\u540c\u65b9\u6cd5\u7684\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>original_string = &quot;hello&quot;<\/p>\n<p>def test_replace_char_in_string():<\/p>\n<p>    replace_char_in_string(original_string, 1, &#39;a&#39;)<\/p>\n<p>def test_replace_char():<\/p>\n<p>    replace_char(original_string, &#39;l&#39;, &#39;x&#39;)<\/p>\n<p>def test_replace_char_using_list():<\/p>\n<p>    replace_char_using_list(original_string, 1, &#39;a&#39;)<\/p>\n<p>def test_replace_char_with_format():<\/p>\n<p>    replace_char_with_format(original_string, 1, &#39;a&#39;)<\/p>\n<p>def test_replace_char_with_regex():<\/p>\n<p>    replace_char_with_regex(original_string, 1, &#39;a&#39;)<\/p>\n<p>print(timeit.timeit(test_replace_char_in_string, number=100000))<\/p>\n<p>print(timeit.timeit(test_replace_char, number=100000))<\/p>\n<p>print(timeit.timeit(test_replace_char_using_list, number=100000))<\/p>\n<p>print(timeit.timeit(test_replace_char_with_format, number=100000))<\/p>\n<p>print(timeit.timeit(test_replace_char_with_regex, number=100000))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5b9e\u9645\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><p>\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u5b9e\u9645\u5e94\u7528\u573a\u666f\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u53ea\u9700\u8981\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u4e00\u4e2a\u5b57\u7b26\uff0c\u5b57\u7b26\u4e32\u5207\u7247\u548c\u5217\u8868\u8f6c\u6362\u65b9\u6cd5\u53ef\u80fd\u662f\u6700\u5408\u9002\u7684\u3002\u5982\u679c\u4f60\u9700\u8981\u8fdb\u884c\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u64cd\u4f5c\uff0c\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u80fd\u4f1a\u66f4\u6709\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7b80\u5355\u66ff\u6362<\/strong>\uff1a\u5bf9\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u66ff\u6362\uff0c\u5b57\u7b26\u4e32\u5207\u7247\u548c\u5217\u8868\u8f6c\u6362\u65b9\u6cd5\u662f\u6700\u76f4\u89c2\u548c\u9ad8\u6548\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6279\u91cf\u66ff\u6362<\/strong>\uff1a\u5f53\u9700\u8981\u4e00\u6b21\u6027\u66ff\u6362\u591a\u4e2a\u5b57\u7b26\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u52a8\u6001\u751f\u6210\u5b57\u7b26\u4e32<\/strong>\uff1a\u5728\u52a8\u6001\u751f\u6210\u5b57\u7b26\u4e32\u7684\u573a\u666f\u4e2d\uff0c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\u53ef\u4ee5\u63d0\u4f9b\u66f4\u5927\u7684\u7075\u6d3b\u6027\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u4e4b\uff0c\u4e86\u89e3\u4e0d\u540c\u7684\u65b9\u6cd5\u53ca\u5176\u9002\u7528\u573a\u666f\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u5b9e\u9645\u5f00\u53d1\u4e2d\u9009\u62e9\u6700\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002\u8fd9\u4e0d\u4ec5\u80fd\u591f\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u53ef\u7ef4\u62a4\u6027\uff0c\u8fd8\u80fd\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u63d0\u5347\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6765\u66ff\u6362\u7279\u5b9a\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\u3002\u8bed\u6cd5\u4e3a <code>string.replace(old, new, count)<\/code>\uff0c\u5176\u4e2d<code>old<\/code>\u662f\u8981\u88ab\u66ff\u6362\u7684\u5b57\u7b26\uff0c<code>new<\/code>\u662f\u66ff\u6362\u540e\u7684\u5b57\u7b26\uff0c<code>count<\/code>\u662f\u53ef\u9009\u53c2\u6570\uff0c\u8868\u793a\u66ff\u6362\u7684\u6b21\u6570\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">original_string = &quot;Hello World&quot;\nnew_string = original_string.replace(&quot;o&quot;, &quot;0&quot;)\nprint(new_string)  # \u8f93\u51fa\uff1aHell0 W0rld\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u7b80\u5355\u6709\u6548\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u57fa\u672c\u7684\u66ff\u6362\u9700\u6c42\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u503c\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u529f\u80fd\uff0c\u53ef\u4ee5\u7528\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u3002\u4f7f\u7528<code>re.sub(pattern, replacement, string)<\/code>\u65b9\u6cd5\u53ef\u4ee5\u6839\u636e\u6307\u5b9a\u7684\u6a21\u5f0f\u8fdb\u884c\u66ff\u6362\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\noriginal_string = &quot;Hello World&quot;\nnew_string = re.sub(r&quot;[oO]&quot;, &quot;0&quot;, original_string)\nprint(new_string)  # \u8f93\u51fa\uff1aHell0 W0rld\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4e8e\u9700\u8981\u6839\u636e\u590d\u6742\u89c4\u5219\u8fdb\u884c\u66ff\u6362\u7684\u573a\u666f\u3002<\/p>\n<p><strong>\u5982\u679c\u8981\u66ff\u6362\u7684\u5b57\u7b26\u5728\u5b57\u7b26\u4e32\u4e2d\u4e0d\u5b58\u5728\uff0c\u4f1a\u53d1\u751f\u4ec0\u4e48\u60c5\u51b5\uff1f<\/strong><br \/>\u5982\u679c\u4f7f\u7528<code>replace()<\/code>\u65b9\u6cd5\u66ff\u6362\u7684\u5b57\u7b26\u5728\u539f\u5b57\u7b26\u4e32\u4e2d\u4e0d\u5b58\u5728\uff0c\u8fd4\u56de\u7684\u7ed3\u679c\u5c06\u4e0e\u539f\u5b57\u7b26\u4e32\u76f8\u540c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">original_string = &quot;Hello World&quot;\nnew_string = original_string.replace(&quot;x&quot;, &quot;y&quot;)\nprint(new_string)  # \u8f93\u51fa\uff1aHello World\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u884c\u4e3a\u786e\u4fdd\u4e86\u4ee3\u7801\u7684\u5065\u58ee\u6027\uff0c\u4e0d\u4f1a\u5f15\u53d1\u9519\u8bef\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u6539\u53d8\u5b57\u7b26\u4e32\u4e2d\u7684\u67d0\u4e00\u4e2a\u503c\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u3001\u5b57\u7b26\u4e32\u66ff\u6362\u65b9\u6cd5\u3001\u6216\u8005\u5229\u7528\u5217\u8868\u8f6c\u6362\u7684\u65b9\u6cd5\u3002 \u7531\u4e8e\u5b57 [&hellip;]","protected":false},"author":3,"featured_media":1145331,"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\/1145325"}],"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=1145325"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145325\/revisions"}],"predecessor-version":[{"id":1145336,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1145325\/revisions\/1145336"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1145331"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1145325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1145325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1145325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}