{"id":1146261,"date":"2025-01-08T23:15:26","date_gmt":"2025-01-08T15:15:26","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1146261.html"},"modified":"2025-01-08T23:15:28","modified_gmt":"2025-01-08T15:15:28","slug":"python%e5%a6%82%e4%bd%95%e5%8e%bb%e9%99%a4%e5%ad%97%e7%ac%a6%e4%b8%b2%e6%9c%80%e5%90%8e%e4%b8%80%e4%b8%aa%e5%ad%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1146261.html","title":{"rendered":"python\u5982\u4f55\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24182424\/54158640-4abd-4c7d-9acf-123f4be0b1c8.webp\" alt=\"python\u5982\u4f55\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\" \/><\/p>\n<p><p> <strong>Python\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u5207\u7247\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49<\/strong>\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u662f\u6700\u5e38\u89c1\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u3002\u901a\u8fc7\u5207\u7247\uff0c\u4f60\u53ef\u4ee5\u5f88\u65b9\u4fbf\u5730\u4ece\u5b57\u7b26\u4e32\u4e2d\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u7684\u5b57\u7b26\u4e32\u662f<code>&quot;Hello!&quot;<\/code>\uff0c\u901a\u8fc7\u5207\u7247\u4f60\u53ef\u4ee5\u5f97\u5230<code>&quot;Hello&quot;<\/code>\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u4ecb\u7ecd\u5176\u4ed6\u4e00\u4e9b\u6709\u7528\u7684\u6280\u5de7\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u7b26\u4e32\u5207\u7247<\/p>\n<\/p>\n<p><p>\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u662f\u6700\u7b80\u5355\u3001\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002Python\u7684\u5b57\u7b26\u4e32\u5207\u7247\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u53bb\u9664\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello!&quot;<\/p>\n<p>new_string = string[:-1]<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>string[:-1]<\/code>\u8868\u793a\u4ece\u5b57\u7b26\u4e32\u7684\u5f00\u5934\u5230\u5012\u6570\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e4b\u524d\u7684\u90e8\u5206\uff0c\u8fd9\u6837\u5c31\u5b9e\u73b0\u4e86\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u76ee\u7684\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>Python\u7684\u5b57\u7b26\u4e32\u65b9\u6cd5\u4e5f\u63d0\u4f9b\u4e86\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str.rstrip()<\/code>\u65b9\u6cd5\u53bb\u9664\u7279\u5b9a\u5b57\u7b26\uff0c\u6216\u8005\u7ed3\u5408<code>str[:-1]<\/code>\u65b9\u6cd5\u5b9e\u73b0\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello!&quot;<\/p>\n<p>new_string = string.rstrip(&#39;!&#39;)<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4f60\u77e5\u9053\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u662f\u4ec0\u4e48\u7684\u60c5\u51b5\u3002\u5982\u679c\u4f60\u4e0d\u786e\u5b9a\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u662f\u4ec0\u4e48\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6b63\u5219\u8868\u8fbe\u5f0f<\/p>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5f3a\u5927\u5de5\u5177\uff0c\u53ef\u4ee5\u7528\u4e8e\u590d\u6742\u7684\u6a21\u5f0f\u5339\u914d\u548c\u66ff\u6362\u64cd\u4f5c\u3002\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u4f60\u53ef\u4ee5\u975e\u5e38\u7075\u6d3b\u5730\u53bb\u9664\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>string = &quot;Hello!&quot;<\/p>\n<p>new_string = re.sub(r&#39;.$&#39;, &#39;&#39;, string)<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>re.sub(r&#39;.$&#39;, &#39;&#39;, string)<\/code>\u8868\u793a\u7528\u7a7a\u5b57\u7b26\u4e32\u66ff\u6362\u5b57\u7b26\u4e32\u672b\u5c3e\u7684\u4e00\u4e2a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8fed\u4ee3\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u867d\u7136\u4e0d\u5982\u524d\u9762\u7684\u65b9\u6cd5\u9ad8\u6548\uff0c\u4f46\u4f60\u4e5f\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u5b57\u7b26\u4e32\u7684\u65b9\u5f0f\u6765\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u67d0\u4e9b\u7279\u5b9a\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u6709\u7528\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello!&quot;<\/p>\n<p>new_string = &#39;&#39;.join([char for char in string[:-1]])<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u901a\u8fc7\u5217\u8868\u751f\u6210\u5f0f\u904d\u5386\u5b57\u7b26\u4e32\u7684\u6bcf\u4e00\u4e2a\u5b57\u7b26\uff0c\u9664\u4e86\u6700\u540e\u4e00\u4e2a\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u62fc\u63a5\u6210\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u7ed3\u5408\u6761\u4ef6\u5224\u65ad<\/p>\n<\/p>\n<p><p>\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u5728\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u4e4b\u524d\u8fdb\u884c\u4e00\u4e9b\u6761\u4ef6\u5224\u65ad\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello!&quot;<\/p>\n<p>if string and string[-1] == &#39;!&#39;:<\/p>\n<p>    new_string = string[:-1]<\/p>\n<p>else:<\/p>\n<p>    new_string = string<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4e0d\u4e3a\u7a7a\uff0c\u5e76\u4e14\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u662f\u5426\u4e3a<code>!<\/code>\uff0c\u5982\u679c\u662f\uff0c\u5219\u53bb\u9664\u5b83\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u590d\u7528\u6027\uff0c\u53ef\u4ee5\u5c06\u4e0a\u8ff0\u65b9\u6cd5\u5c01\u88c5\u5230\u4e00\u4e2a\u51fd\u6570\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_last_char(s):<\/p>\n<p>    return s[:-1] if s else s<\/p>\n<p>string = &quot;Hello!&quot;<\/p>\n<p>new_string = remove_last_char(string)<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u4ee3\u7801\u66f4\u5177\u6a21\u5757\u5316\uff0c\u6613\u4e8e\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u5904\u7406\u7279\u6b8a\u5b57\u7b26<\/p>\n<\/p>\n<p><p>\u6709\u65f6\u5019\uff0c\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u53ef\u80fd\u662f\u7279\u6b8a\u5b57\u7b26\uff0c\u6bd4\u5982\u6362\u884c\u7b26\u6216\u5236\u8868\u7b26\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str.rstrip()<\/code>\u65b9\u6cd5\u53bb\u9664\u7279\u5b9a\u7684\u7279\u6b8a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">string = &quot;Hello!\\n&quot;<\/p>\n<p>new_string = string.rstrip(&#39;\\n&#39;)<\/p>\n<p>print(new_string)  # \u8f93\u51fa: Hello!<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u9700\u8981\u5904\u7406\u7684\u662f\u591a\u884c\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u7ed3\u5408<code>splitlines()<\/code>\u548c<code>join()<\/code>\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">multi_line_string = &quot;&quot;&quot;Hello!<\/p>\n<p>World!<\/p>\n<p>&quot;&quot;&quot;<\/p>\n<p>lines = multi_line_string.splitlines()<\/p>\n<p>lines = [line[:-1] if line else line for line in lines]<\/p>\n<p>new_string = &#39;\\n&#39;.join(lines)<\/p>\n<p>print(new_string)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5c06\u591a\u884c\u5b57\u7b26\u4e32\u62c6\u5206\u4e3a\u5355\u884c\uff0c\u7136\u540e\u53bb\u9664\u6bcf\u884c\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\uff0c\u6700\u540e\u5c06\u5b83\u4eec\u91cd\u65b0\u7ec4\u5408\u6210\u591a\u884c\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u6027\u80fd\u6bd4\u8f83<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6027\u80fd\u4e5f\u662f\u4e00\u4e2a\u9700\u8981\u8003\u8651\u7684\u91cd\u8981\u56e0\u7d20\u3002\u5207\u7247\u65b9\u6cd5\u901a\u5e38\u662f\u6700\u5feb\u7684\uff0c\u56e0\u4e3a\u5b83\u662f\u7531Python\u7684\u5e95\u5c42\u5b9e\u73b0\u7684\uff0c\u6027\u80fd\u975e\u5e38\u9ad8\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import timeit<\/p>\n<p>string = &quot;Hello!&quot;<\/p>\n<h2><strong>\u5207\u7247\u65b9\u6cd5<\/strong><\/h2>\n<p>time_slice = timeit.timeit(lambda: string[:-1], number=1000000)<\/p>\n<h2><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5<\/strong><\/h2>\n<p>time_regex = timeit.timeit(lambda: re.sub(r&#39;.$&#39;, &#39;&#39;, string), number=1000000)<\/p>\n<p>print(f&quot;\u5207\u7247\u65b9\u6cd5\u8017\u65f6: {time_slice}&quot;)<\/p>\n<p>print(f&quot;\u6b63\u5219\u8868\u8fbe\u5f0f\u65b9\u6cd5\u8017\u65f6: {time_regex}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u6027\u80fd\u6bd4\u8f83\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u4f60\u5e94\u7528\u573a\u666f\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec<strong>\u5b57\u7b26\u4e32\u5207\u7247\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u8fed\u4ee3\u65b9\u6cd5\u3001\u7ed3\u5408\u6761\u4ef6\u5224\u65ad\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u3001\u5904\u7406\u7279\u6b8a\u5b57\u7b26\u3001\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32<\/strong>\u7b49\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u9002\u7528\u7684\u573a\u666f\u548c\u4f18\u7f3a\u70b9\uff0c\u5177\u4f53\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u5e94\u6839\u636e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u548c\u5e94\u7528\u573a\u666f\u6765\u5b9a\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u4f7f\u7528\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u9ad8\u6548\u5730\u5904\u7406\u5404\u79cd\u5b57\u7b26\u4e32\u64cd\u4f5c\u4efb\u52a1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u53bb\u9664\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5207\u7247\u64cd\u4f5c\u8f7b\u677e\u53bb\u9664\u5b57\u7b26\u4e32\u7684\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u3002\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u5207\u7247\u8bed\u6cd5<code>string[:-1]<\/code>\u53ef\u4ee5\u83b7\u5f97\u53bb\u6389\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u65b0\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c<code>my_string = &quot;Hello!&quot;<\/code>\uff0c<code>new_string = my_string[:-1]<\/code>\u5c06\u5f97\u5230<code>&quot;Hello&quot;<\/code>\u3002<\/p>\n<p><strong>\u5728\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u65f6\uff0c\u5982\u4f55\u5904\u7406\u7a7a\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5904\u7406\u7a7a\u5b57\u7b26\u4e32\u65f6\uff0c\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u4e0d\u4f1a\u5bfc\u81f4\u9519\u8bef\u3002\u7a7a\u5b57\u7b26\u4e32\u5728\u5207\u7247\u65f6\u4ecd\u7136\u8fd4\u56de\u7a7a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u5982\u679c<code>my_string = &quot;&quot;<\/code>\uff0c\u5219<code>new_string = my_string[:-1]<\/code>\u7684\u7ed3\u679c\u4ecd\u7136\u662f<code>&quot;&quot;<\/code>\u3002\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u53ef\u4ee5\u5728\u64cd\u4f5c\u524d\u5148\u68c0\u67e5\u5b57\u7b26\u4e32\u662f\u5426\u4e3a\u7a7a\u3002<\/p>\n<p><strong>\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u540e\uff0c\u5982\u4f55\u4fdd\u7559\u539f\u5b57\u7b26\u4e32\u4e0d\u53d8\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u662f\u4e0d\u53ef\u53d8\u7684\uff0c\u8fd9\u610f\u5473\u7740\u5bf9\u5b57\u7b26\u4e32\u7684\u4efb\u4f55\u64cd\u4f5c\u90fd\u4f1a\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u4f1a\u6539\u53d8\u539f\u6765\u7684\u5b57\u7b26\u4e32\u3002\u56e0\u6b64\uff0c\u4f7f\u7528\u5207\u7247\u64cd\u4f5c\u53bb\u9664\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u65f6\uff0c\u539f\u5b57\u7b26\u4e32\u4fdd\u6301\u4e0d\u53d8\u3002\u6bd4\u5982\uff0c<code>my_string = &quot;Hello!&quot;<\/code>\uff0c\u6267\u884c<code>new_string = my_string[:-1]<\/code>\u540e\uff0c<code>my_string<\/code>\u4ecd\u7136\u662f<code>&quot;Hello!&quot;<\/code>\uff0c\u800c<code>new_string<\/code>\u662f<code>&quot;Hello&quot;<\/code>\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u53bb\u9664\u5b57\u7b26\u4e32\u6700\u540e\u4e00\u4e2a\u5b57\u7b26\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff1a\u5207\u7247\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002\u5176\u4e2d\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u5207\u7247\u662f\u6700\u5e38\u89c1\u4e14 [&hellip;]","protected":false},"author":3,"featured_media":1146271,"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\/1146261"}],"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=1146261"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1146261\/revisions"}],"predecessor-version":[{"id":1146272,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1146261\/revisions\/1146272"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1146271"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1146261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1146261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1146261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}