{"id":976806,"date":"2024-12-27T06:24:28","date_gmt":"2024-12-26T22:24:28","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/976806.html"},"modified":"2024-12-27T06:24:32","modified_gmt":"2024-12-26T22:24:32","slug":"python%e5%a6%82%e4%bd%95%e5%8e%bb%e6%8e%89%e5%8d%95%e5%bc%95%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/976806.html","title":{"rendered":"python\u5982\u4f55\u53bb\u6389\u5355\u5f15\u53f7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24202336\/5eb1cc09-0dce-457c-bd7b-01d0a08df419.webp\" alt=\"python\u5982\u4f55\u53bb\u6389\u5355\u5f15\u53f7\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u53bb\u6389\u5355\u5f15\u53f7\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u7684\u66ff\u6362\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u8f6c\u6362\u4e3a\u5217\u8868\u540e\u518d\u62fc\u63a5\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u5177\u4f53\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528<code>str.replace()<\/code>\u65b9\u6cd5\u3001\u4f7f\u7528<code>re.sub()<\/code>\u8fdb\u884c\u6b63\u5219\u66ff\u6362\u3001\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u5217\u8868\u518d\u62fc\u63a5\u6210\u5b57\u7b26\u4e32\u3002<\/strong> <\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c<code>str.replace()<\/code>\u65b9\u6cd5\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u5f15\u53f7\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u8fbe\u5230\u53bb\u6389\u5355\u5f15\u53f7\u7684\u6548\u679c\u3002\u4ee5\u4e0b\u662f\u5bf9\u8fd9\u79cd\u65b9\u6cd5\u7684\u8be6\u7ec6\u63cf\u8ff0\uff1a<br \/><code>str.replace()<\/code>\u65b9\u6cd5\u662fPython\u5b57\u7b26\u4e32\u5bf9\u8c61\u63d0\u4f9b\u7684\u4e00\u4e2a\u5185\u5efa\u65b9\u6cd5\uff0c\u5b83\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u4e2d\u6307\u5b9a\u7684\u5b50\u5b57\u7b26\u4e32\u66ff\u6362\u4e3a\u53e6\u4e00\u4e2a\u5b50\u5b57\u7b26\u4e32\u3002\u5728\u53bb\u9664\u5355\u5f15\u53f7\u7684\u60c5\u5883\u4e0b\uff0c<code>str.replace(&quot;&#39;&quot;, &quot;&quot;)<\/code>\u53ef\u4ee5\u6709\u6548\u5730\u5c06\u6240\u6709\u7684\u5355\u5f15\u53f7\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u5b83\u4eec\u3002\u8be5\u65b9\u6cd5\u6613\u4e8e\u4f7f\u7528\u4e14\u76f4\u89c2\uff0c\u5bf9\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u7684\u7b80\u5355\u66ff\u6362\u4efb\u52a1\u90fd\u80fd\u591f\u5f88\u597d\u5730\u5b8c\u6210\u3002<\/p>\n<\/p>\n<hr>\n<p><h3>\u4e00\u3001\u4f7f\u7528STR.REPLACE()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>str.replace()<\/code>\u662f\u4e00\u4e2a\u975e\u5e38\u65b9\u4fbf\u7684\u5b57\u7b26\u4e32\u5904\u7406\u65b9\u6cd5\uff0c\u5b83\u53ef\u4ee5\u7528\u6765\u53bb\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5b57\u7b26\uff0c\u6bd4\u5982\u5355\u5f15\u53f7\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u4f7f\u7528<code>str.replace(old, new)<\/code>\uff0c\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>old<\/code>\u5b50\u5b57\u7b26\u4e32\u66ff\u6362\u4e3a<code>new<\/code>\u5b50\u5b57\u7b26\u4e32\u3002\u5bf9\u4e8e\u53bb\u6389\u5355\u5f15\u53f7\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u901a\u8fc7\u5c06<code>old<\/code>\u8bbe\u7f6e\u4e3a\u5355\u5f15\u53f7<code>&#39;<\/code>\uff0c\u5c06<code>new<\/code>\u8bbe\u7f6e\u4e3a\u7a7a\u5b57\u7b26\u4e32<code>&#39;&#39;<\/code>\uff0c\u4ece\u800c\u8fbe\u5230\u53bb\u9664\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_string = &quot;Hello, &#39;world&#39;!&quot;<\/p>\n<p>modified_string = original_string.replace(&quot;&#39;&quot;, &quot;&quot;)<\/p>\n<p>print(modified_string)  # Output: Hello, world!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>replace()<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5355\u5f15\u53f7\u66ff\u6362\u4e3a\u7a7a\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u5355\u5f15\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><code>str.replace()<\/code>\u65b9\u6cd5\u4e0d\u6539\u53d8\u539f\u5b57\u7b26\u4e32\uff0c\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li>\u8be5\u65b9\u6cd5\u662f\u5927\u5c0f\u5199\u654f\u611f\u7684\uff0c\u56e0\u6b64\u9700\u8981\u51c6\u786e\u8f93\u5165\u8981\u66ff\u6362\u7684\u5b57\u7b26\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u4e8c\u3001\u4f7f\u7528RE.SUB()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>re.sub()<\/code>\u662fPython\u4e2d\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<code>re<\/code>\u63d0\u4f9b\u7684\u4e00\u4e2a\u65b9\u6cd5\uff0c\u7528\u4e8e\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7b26\u5408\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u90e8\u5206\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<p><p><code>re.sub(pattern, repl, string, count=0, flags=0)<\/code>\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u4e2d\u6240\u6709\u5339\u914d\u6b63\u5219\u8868\u8fbe\u5f0f<code>pattern<\/code>\u7684\u90e8\u5206\u66ff\u6362\u4e3a<code>repl<\/code>\u3002\u5728\u53bb\u9664\u5355\u5f15\u53f7\u7684\u60c5\u5883\u4e0b\uff0c<code>pattern<\/code>\u53ef\u4ee5\u662f\u6b63\u5219\u8868\u8fbe\u5f0f<code>&#39;<\/code>\uff0c<code>repl<\/code>\u8bbe\u7f6e\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>original_string = &quot;Hello, &#39;world&#39;!&quot;<\/p>\n<p>modified_string = re.sub(&quot;&#39;&quot;, &quot;&quot;, original_string)<\/p>\n<p>print(modified_string)  # Output: Hello, world!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.sub()<\/code>\u65b9\u6cd5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5f0f\u66ff\u6362\u53bb\u6389\u4e86\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u5f15\u53f7\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u9700\u8981\u5bfc\u5165<code>re<\/code>\u6a21\u5757\u624d\u80fd\u4f7f\u7528<code>re.sub()<\/code>\u3002<\/li>\n<li>\u6b63\u5219\u8868\u8fbe\u5f0f\u529f\u80fd\u5f3a\u5927\uff0c\u4f46\u5bf9\u4e8e\u7b80\u5355\u66ff\u6362\u4efb\u52a1\u53ef\u80fd\u663e\u5f97\u8fc7\u4e8e\u590d\u6742\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u4e09\u3001\u4f7f\u7528\u5b57\u7b26\u4e32JOIN()\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u5c06\u5b57\u7b26\u4e32\u8f6c\u4e3a\u5217\u8868\uff0c\u518d\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u91cd\u7ec4\u5b57\u7b26\u4e32\uff0c\u540c\u6837\u53ef\u4ee5\u5b9e\u73b0\u53bb\u6389\u5355\u5f15\u53f7\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u57fa\u672c\u7528\u6cd5\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7<code>list()<\/code>\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5b57\u7b26\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u5f0f\u53bb\u6389\u5355\u5f15\u53f7\uff0c\u6700\u540e\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u5c06\u5217\u8868\u91cd\u7ec4\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u793a\u4f8b\uff1a<\/strong><\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_string = &quot;Hello, &#39;world&#39;!&quot;<\/p>\n<p>modified_list = [char for char in original_string if char != &quot;&#39;&quot;]<\/p>\n<p>modified_string = &#39;&#39;.join(modified_list)<\/p>\n<p>print(modified_string)  # Output: Hello, world!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5217\u8868\u63a8\u5bfc\u5f0f\u7528\u4e8e\u8fc7\u6ee4\u6389\u6240\u6709\u7684\u5355\u5f15\u53f7\uff0c\u7136\u540e\u901a\u8fc7<code>join()<\/code>\u65b9\u6cd5\u5c06\u5269\u4e0b\u7684\u5b57\u7b26\u91cd\u7ec4\u4e3a\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li>\u8fd9\u79cd\u65b9\u6cd5\u7075\u6d3b\u6027\u8f83\u9ad8\uff0c\u4f46\u5728\u5904\u7406\u975e\u5e38\u957f\u7684\u5b57\u7b26\u4e32\u65f6\u53ef\u80fd\u6548\u7387\u4e0d\u5982<code>replace()<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><h3>\u56db\u3001\u5176\u4ed6\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u53bb\u9664\u5355\u5f15\u53f7\uff0c\u6bd4\u5982\u4f7f\u7528\u5faa\u73af\u904d\u5386\u3001\u5b57\u7b26\u4e32\u5207\u7247\u7b49\u3002\u8fd9\u4e9b\u65b9\u6cd5\u5728\u67d0\u4e9b\u7279\u6b8a\u60c5\u51b5\u4e0b\u53ef\u80fd\u66f4\u4e3a\u5408\u9002\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u5faa\u73af\u904d\u5386\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u53ef\u4ee5\u901a\u8fc7\u5faa\u73af\u904d\u5386\u5b57\u7b26\u4e32\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u8df3\u8fc7\u9700\u8981\u53bb\u6389\u7684\u5355\u5f15\u53f7\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_string = &quot;Hello, &#39;world&#39;!&quot;<\/p>\n<p>modified_string = &quot;&quot;<\/p>\n<p>for char in original_string:<\/p>\n<p>    if char != &quot;&#39;&quot;:<\/p>\n<p>        modified_string += char<\/p>\n<p>print(modified_string)  # Output: Hello, world!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b57\u7b26\u4e32\u5207\u7247\uff1a<\/strong><\/p>\n<\/p>\n<p><p>\u82e5\u5df2\u77e5\u5355\u5f15\u53f7\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u5207\u7247\u7684\u65b9\u5f0f\u53bb\u6389\u7279\u5b9a\u4f4d\u7f6e\u7684\u5355\u5f15\u53f7\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">original_string = &quot;Hello, &#39;world&#39;!&quot;<\/p>\n<p>modified_string = original_string[:7] + original_string[8:]<\/p>\n<p>print(modified_string)  # Output: Hello, world!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5bf9\u5b57\u7b26\u4e32\u7ed3\u6784\u6709\u660e\u786e\u4e86\u89e3\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u5f15\u53f7\u5728Python\u4e2d\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5b9e\u73b0\uff0c\u5176\u4e2d<code>str.replace()<\/code>\u662f\u6700\u7b80\u4fbf\u3001\u76f4\u89c2\u7684\u65b9\u6cd5\uff0c\u9002\u7528\u4e8e\u5927\u591a\u6570\u60c5\u51b5\u3002\u800c\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u9700\u6c42\uff0c\u53ef\u4ee5\u9009\u62e9\u6b63\u5219\u8868\u8fbe\u5f0f<code>re.sub()<\/code>\u6216\u5b57\u7b26\u4e32\u64cd\u4f5c\u7684\u5176\u4ed6\u65b9\u6cd5\u3002\u6839\u636e\u5177\u4f53\u7684\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5220\u9664\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u5f15\u53f7\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6765\u5220\u9664\u5355\u5f15\u53f7\u3002\u6bd4\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32<code>text = &quot;It&#39;s a sunny day&quot;<\/code>\uff0c\u53ef\u4ee5\u7528<code>text.replace(&quot;&#39;&quot;, &quot;&quot;)<\/code>\u6765\u53bb\u6389\u6240\u6709\u7684\u5355\u5f15\u53f7\u3002\u8fd9\u6837\u5904\u7406\u540e\u7684\u5b57\u7b26\u4e32\u5c06\u53d8\u6210<code>&quot;Its a sunny day&quot;<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u5305\u542b\u5355\u5f15\u53f7\u7684\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5904\u7406\u5305\u542b\u5355\u5f15\u53f7\u7684\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\uff08<code>\\<\/code>\uff09\u6765\u907f\u514d\u8bed\u6cd5\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u5b57\u7b26\u4e32<code>text = &#39;It\\&#39;s a sunny day&#39;<\/code>\u80fd\u591f\u6b63\u786e\u8868\u793a\u542b\u6709\u5355\u5f15\u53f7\u7684\u5185\u5bb9\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u53cc\u5f15\u53f7\u5305\u88f9\u5b57\u7b26\u4e32\uff08\u5982<code>text = &quot;It&#39;s a sunny day&quot;<\/code>\uff09\u4e5f\u53ef\u4ee5\u907f\u514d\u8f6c\u4e49\u3002<\/p>\n<p><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5728Python\u4e2d\u53bb\u6389\u5355\u5f15\u53f7\u7684\u65b9\u6cd5\u662f\u4ec0\u4e48\uff1f<\/strong><br \/>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u5f3a\u5927\u4e14\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u5904\u7406\u5b57\u7b26\u4e32\u3002\u53ef\u4ee5\u4f7f\u7528<code>re<\/code>\u6a21\u5757\u4e2d\u7684<code>sub()<\/code>\u51fd\u6570\u6765\u53bb\u6389\u5355\u5f15\u53f7\u3002\u4f8b\u5982\uff0c<code>import re<\/code>\u540e\u4f7f\u7528<code>re.sub(r&quot;&#39;&quot;, &quot;&quot;, text)<\/code>\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u5355\u5f15\u53f7\uff0c\u8fd9\u6837\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u66f4\u590d\u6742\u7684\u5b57\u7b26\u4e32\u6a21\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u53bb\u6389\u5355\u5f15\u53f7\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u7684\u66ff\u6362\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u8f6c\u6362\u4e3a\u5217\u8868\u540e\u518d\u62fc\u63a5\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u5177\u4f53\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f [&hellip;]","protected":false},"author":3,"featured_media":976815,"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\/976806"}],"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=976806"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976806\/revisions"}],"predecessor-version":[{"id":976818,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/976806\/revisions\/976818"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/976815"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=976806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=976806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=976806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}