{"id":1051561,"date":"2024-12-31T14:17:26","date_gmt":"2024-12-31T06:17:26","guid":{"rendered":""},"modified":"2024-12-31T14:17:30","modified_gmt":"2024-12-31T06:17:30","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%88%86%e9%9a%94%e7%ac%a6%e5%8e%bb%e6%8e%89","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1051561.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5206\u9694\u7b26\u53bb\u6389"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/8f64fddc-1ca6-4258-88b7-b3c2dee3be49.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u5c06\u5206\u9694\u7b26\u53bb\u6389\" \/><\/p>\n<p><p> <strong>Python\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u5206\u9694\u7b26\u53bb\u6389\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u7684replace\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u7684split\u548cjoin\u65b9\u6cd5\u3002\u6700\u5e38\u7528\u548c\u7b80\u5355\u7684\u65b9\u5f0f\u662f\u4f7f\u7528replace\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528replace\u65b9\u6cd5<\/strong>\uff1areplace\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6307\u5b9a\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\u66ff\u6362\u6210\u65b0\u7684\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u5c06\u5206\u9694\u7b26\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u5206\u9694\u7b26\u3002\u4e0b\u9762\u662f\u8be6\u7ec6\u63cf\u8ff0\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528replace\u65b9\u6cd5<\/h3>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_separator(s, separator):<\/p>\n<p>    return s.replace(separator, &#39;&#39;)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Hello-World-This-Is-A-Test&quot;<\/p>\n<p>separator = &quot;-&quot;<\/p>\n<p>new_s = remove_separator(s, separator)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: HelloWorldThisIsATest<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>replace<\/code>\u65b9\u6cd5\u88ab\u7528\u6765\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>-<\/code>\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32<code>&#39;&#39;<\/code>\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u5904\u7406\u5b57\u7b26\u4e32\uff0c\u5c24\u5176\u662f\u5904\u7406\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u95ee\u9898\u3002Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def remove_separator_regex(s, pattern):<\/p>\n<p>    return re.sub(pattern, &#39;&#39;, s)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Hello-World-This-Is-A-Test&quot;<\/p>\n<p>pattern = &quot;-&quot;<\/p>\n<p>new_s = remove_separator_regex(s, pattern)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: HelloWorldThisIsATest<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>re.sub<\/code>\u65b9\u6cd5\uff0c\u5c06\u5339\u914d\u5230\u7684\u6240\u6709<code>-<\/code>\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4f7f\u7528split\u548cjoin\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>split\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u6309\u6307\u5b9a\u5206\u9694\u7b26\u62c6\u5206\u6210\u5217\u8868\uff0c\u800cjoin\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5217\u8868\u4e2d\u7684\u5143\u7d20\u8fde\u63a5\u6210\u5b57\u7b26\u4e32\u3002\u6211\u4eec\u53ef\u4ee5\u5148\u4f7f\u7528split\u62c6\u5206\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u518d\u4f7f\u7528join\u8fde\u63a5\u6210\u6ca1\u6709\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_separator_split_join(s, separator):<\/p>\n<p>    parts = s.split(separator)<\/p>\n<p>    return &#39;&#39;.join(parts)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Hello-World-This-Is-A-Test&quot;<\/p>\n<p>separator = &quot;-&quot;<\/p>\n<p>new_s = remove_separator_split_join(s, separator)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: HelloWorldThisIsATest<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c<code>split<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309<code>-<\/code>\u62c6\u5206\u6210\u5217\u8868\uff0c\u7136\u540e<code>join<\/code>\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5217\u8868\u5143\u7d20\u8fde\u63a5\u6210\u6ca1\u6709\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001replace\u65b9\u6cd5\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>replace\u65b9\u6cd5\u662f\u6700\u7b80\u5355\u548c\u6700\u5e38\u7528\u7684\u65b9\u5f0f\uff0c\u9002\u7528\u4e8e\u5904\u7406\u6bd4\u8f83\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u66ff\u6362\u64cd\u4f5c\u3002\u5176\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str.replace(old, new, count)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>old<\/code>\uff1a\u8868\u793a\u8981\u88ab\u66ff\u6362\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>new<\/code>\uff1a\u8868\u793a\u66ff\u6362\u540e\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>count<\/code>\uff1a\u8868\u793a\u66ff\u6362\u7684\u6b21\u6570\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u5219\u66ff\u6362\u6240\u6709\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/li>\n<\/ul>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_separator_replace(s, separator):<\/p>\n<p>    return s.replace(separator, &#39;&#39;)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Python-is-awesome&quot;<\/p>\n<p>separator = &quot;-&quot;<\/p>\n<p>new_s = remove_separator_replace(s, separator)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: Pythonisawesome<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528replace\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>-<\/code>\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u4e14\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u5904\u7406\u5b57\u7b26\u4e32\u6a21\u5f0f\u5339\u914d\u548c\u66ff\u6362\u3002Python\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002\u5176\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">re.sub(pattern, repl, string, count=0, flags=0)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>pattern<\/code>\uff1a\u8868\u793a\u8981\u5339\u914d\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5f0f\u3002<\/li>\n<li><code>repl<\/code>\uff1a\u8868\u793a\u66ff\u6362\u540e\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>string<\/code>\uff1a\u8868\u793a\u8981\u5904\u7406\u7684\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>count<\/code>\uff1a\u8868\u793a\u66ff\u6362\u7684\u6b21\u6570\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u5219\u66ff\u6362\u6240\u6709\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>flags<\/code>\uff1a\u8868\u793a\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6807\u5fd7\u4f4d\uff0c\u7528\u4e8e\u63a7\u5236\u5339\u914d\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>def remove_separator_regex(s, pattern):<\/p>\n<p>    return re.sub(pattern, &#39;&#39;, s)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Data-Science-is-fun&quot;<\/p>\n<p>pattern = &quot;-&quot;<\/p>\n<p>new_s = remove_separator_regex(s, pattern)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: DataScienceisfun<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528<code>re.sub<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709<code>-<\/code>\u66ff\u6362\u4e3a\u7a7a\u5b57\u7b26\u4e32\uff0c\u4ece\u800c\u53bb\u6389\u4e86\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001split\u548cjoin\u65b9\u6cd5\u7684\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>split\u65b9\u6cd5\u548cjoin\u65b9\u6cd5\u7684\u7ec4\u5408\u4f7f\u7528\u4e5f\u662f\u4e00\u79cd\u5e38\u89c1\u7684\u65b9\u5f0f\u3002\u5176\u8bed\u6cd5\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">str.split(separator, maxsplit)<\/p>\n<p>str.join(iterable)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ul>\n<li><code>separator<\/code>\uff1a\u8868\u793a\u5206\u9694\u7b26\u3002<\/li>\n<li><code>maxsplit<\/code>\uff1a\u8868\u793a\u6700\u5927\u62c6\u5206\u6b21\u6570\uff0c\u5982\u679c\u4e0d\u6307\u5b9a\uff0c\u5219\u62c6\u5206\u6240\u6709\u5339\u914d\u7684\u5b50\u5b57\u7b26\u4e32\u3002<\/li>\n<li><code>iterable<\/code>\uff1a\u8868\u793a\u8981\u8fde\u63a5\u7684\u53ef\u8fed\u4ee3\u5bf9\u8c61\u3002<\/li>\n<\/ul>\n<p><p>\u4e0b\u9762\u662f\u4e00\u4e2a\u8be6\u7ec6\u7684\u4f8b\u5b50\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_separator_split_join(s, separator):<\/p>\n<p>    parts = s.split(separator)<\/p>\n<p>    return &#39;&#39;.join(parts)<\/p>\n<h2><strong>\u793a\u4f8b<\/strong><\/h2>\n<p>s = &quot;Machine-Learning-is-cool&quot;<\/p>\n<p>separator = &quot;-&quot;<\/p>\n<p>new_s = remove_separator_split_join(s, separator)<\/p>\n<p>print(new_s)  # \u8f93\u51fa: MachineLearningiscool<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5148\u4f7f\u7528<code>split<\/code>\u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309<code>-<\/code>\u62c6\u5206\u6210\u5217\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>join<\/code>\u65b9\u6cd5\u5c06\u8fd9\u4e9b\u5217\u8868\u5143\u7d20\u8fde\u63a5\u6210\u6ca1\u6709\u5206\u9694\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u7efc\u5408\u6bd4\u8f83\u4e0e\u9009\u62e9<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u5177\u4f53\u7684\u9700\u6c42\u548c\u573a\u666f\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>replace\u65b9\u6cd5<\/strong>\uff1a\u9002\u7528\u4e8e\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u66ff\u6362\u64cd\u4f5c\uff0c\u4ee3\u7801\u7b80\u6d01\u6613\u8bfb\u3002<\/li>\n<li><strong>\u6b63\u5219\u8868\u8fbe\u5f0f<\/strong>\uff1a\u9002\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\uff0c\u7075\u6d3b\u4e14\u5f3a\u5927\uff0c\u4f46\u4ee3\u7801\u76f8\u5bf9\u590d\u6742\u3002<\/li>\n<li><strong>split\u548cjoin\u65b9\u6cd5<\/strong>\uff1a\u9002\u7528\u4e8e\u9700\u8981\u5bf9\u5b57\u7b26\u4e32\u8fdb\u884c\u62c6\u5206\u548c\u91cd\u65b0\u7ec4\u5408\u7684\u64cd\u4f5c\uff0c\u4ee3\u7801\u76f8\u5bf9\u7b80\u6d01\u3002<\/li>\n<\/ul>\n<p><p>\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u80fd\u591f\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u7ef4\u62a4\u6027\u3002\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u7075\u6d3b\u8fd0\u7528\u8fd9\u51e0\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5e94\u5bf9\u5404\u79cd\u5b57\u7b26\u4e32\u64cd\u4f5c\u9700\u6c42\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5206\u9694\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6765\u53bb\u6389\u7279\u5b9a\u7684\u5206\u9694\u7b26\u3002\u4f8b\u5982\uff0c\u5982\u679c\u60f3\u8981\u53bb\u6389\u9017\u53f7\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>my_string.replace(&#39;,&#39;, &#39;&#39;)<\/code>\u3002\u8fd9\u4e2a\u65b9\u6cd5\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\uff0c\u4e0d\u5305\u542b\u6307\u5b9a\u7684\u5206\u9694\u7b26\u3002<\/p>\n<p><strong>\u5728\u5904\u7406\u5927\u578b\u6587\u672c\u65f6\uff0c\u6709\u54ea\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u53bb\u6389\u5206\u9694\u7b26\uff1f<\/strong><br \/>\u5bf9\u4e8e\u5927\u578b\u6587\u672c\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6a21\u5757<code>re<\/code>\u6765\u53bb\u6389\u5206\u9694\u7b26\u3002\u4f7f\u7528<code>re.sub()<\/code>\u53ef\u4ee5\u9ad8\u6548\u5730\u66ff\u6362\u6389\u6240\u6709\u5339\u914d\u7684\u5206\u9694\u7b26\u3002\u4f8b\u5982\uff0c<code>re.sub(r&#39;[,.]&#39;, &#39;&#39;, my_large_string)<\/code>\u53ef\u4ee5\u53bb\u6389\u6240\u6709\u7684\u9017\u53f7\u548c\u53e5\u53f7\u3002<\/p>\n<p><strong>\u5982\u679c\u9700\u8981\u53bb\u6389\u591a\u4e2a\u4e0d\u540c\u7c7b\u578b\u7684\u5206\u9694\u7b26\uff0c\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/>\u53ef\u4ee5\u4f7f\u7528<code>str.translate()<\/code>\u7ed3\u5408<code>str.maketrans()<\/code>\u6765\u540c\u65f6\u53bb\u6389\u591a\u4e2a\u4e0d\u540c\u7684\u5206\u9694\u7b26\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u7ffb\u8bd1\u8868\uff0c\u7136\u540e\u4f7f\u7528<code>translate()<\/code>\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c<code>my_string.translate(str.maketrans(&#39;&#39;, &#39;&#39;, &#39;,;:.&#39;))<\/code>\u53ef\u4ee5\u53bb\u6389\u9017\u53f7\u3001\u5206\u53f7\u3001\u5192\u53f7\u548c\u53e5\u53f7\u7b49\u591a\u4e2a\u5206\u9694\u7b26\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u4e2d\u7684\u5206\u9694\u7b26\u53bb\u6389\uff0c\u4f8b\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u7684replace\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u5b57\u7b26\u4e32\u7684s [&hellip;]","protected":false},"author":3,"featured_media":1051573,"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\/1051561"}],"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=1051561"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1051561\/revisions"}],"predecessor-version":[{"id":1051577,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1051561\/revisions\/1051577"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1051573"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1051561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1051561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1051561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}