{"id":1073732,"date":"2025-01-08T11:28:19","date_gmt":"2025-01-08T03:28:19","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1073732.html"},"modified":"2025-01-08T11:28:23","modified_gmt":"2025-01-08T03:28:23","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%8a%8a%e6%8d%a2%e8%a1%8c%e7%ac%a6%e5%8e%bb%e6%8e%89-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1073732.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u628a\u6362\u884c\u7b26\u53bb\u6389"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25103556\/5727eaaa-f916-4a1b-97c3-cebb7a477cf9.webp\" alt=\"python\u4e2d\u5982\u4f55\u628a\u6362\u884c\u7b26\u53bb\u6389\" \/><\/p>\n<p><p> \u5728 Python \u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u53bb\u6389\u6362\u884c\u7b26\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u7684 <code>strip()<\/code> \u65b9\u6cd5\u3001<code>replace()<\/code> \u65b9\u6cd5\u3001<code>splitlines()<\/code> \u65b9\u6cd5\u7b49\u3002<strong>\u4f7f\u7528 <code>strip()<\/code> \u65b9\u6cd5\u3001<code>replace()<\/code> \u65b9\u6cd5\u3001<code>splitlines()<\/code> \u65b9\u6cd5\u90fd\u53ef\u4ee5\u6709\u6548\u53bb\u6389\u6362\u884c\u7b26<\/strong>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u63cf\u8ff0\u5176\u4e2d\u7684\u4e00\u79cd\u65b9\u6cd5\uff0c\u4f7f\u7528 <code>strip()<\/code> \u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p><code>strip()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u79fb\u9664\u5b57\u7b26\u4e32\u5934\u5c3e\u7684\u7279\u5b9a\u5b57\u7b26\uff0c\u5305\u62ec\u6362\u884c\u7b26\u3002\u6bd4\u5982\uff0c\u5b57\u7b26\u4e32 <code>s = &quot;Hello\\n&quot;<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7 <code>s.strip()<\/code> \u53bb\u6389\u6362\u884c\u7b26\uff0c\u7ed3\u679c\u4e3a <code>Hello<\/code>\u3002<code>strip()<\/code> \u65b9\u6cd5\u9ed8\u8ba4\u79fb\u9664\u5305\u62ec\u7a7a\u683c\u3001\u6362\u884c\u7b26\u3001\u5236\u8868\u7b26\u7b49\u5728\u5185\u7684\u6240\u6709\u5934\u5c3e\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001<code>strip()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>strip()<\/code> \u65b9\u6cd5\u662f\u6700\u7b80\u5355\u76f4\u63a5\u7684\u53bb\u6389\u6362\u884c\u7b26\u7684\u65b9\u6cd5\u3002\u5b83\u4e0d\u4ec5\u53ef\u4ee5\u53bb\u6389\u6362\u884c\u7b26\uff0c\u8fd8\u53ef\u4ee5\u53bb\u6389\u5176\u4ed6\u7a7a\u767d\u5b57\u7b26\uff08\u5982\u7a7a\u683c\u3001\u5236\u8868\u7b26\uff09\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\n&quot;<\/p>\n<p>s = s.strip()<\/p>\n<p>print(s)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u660e\u4e86\uff0c\u4f46\u5b83\u53ea\u80fd\u53bb\u6389\u5b57\u7b26\u4e32\u5934\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26\u3002\u5982\u679c\u5b57\u7b26\u4e32\u4e2d\u95f4\u6709\u6362\u884c\u7b26\uff0c\u5c31\u9700\u8981\u5176\u4ed6\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001<code>replace()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>replace()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u7528\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5b57\u7b26\u3002\u5b83\u53ef\u4ee5\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u6362\u884c\u7b26\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u5934\u5c3e\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\nWorld\\n&quot;<\/p>\n<p>s = s.replace(&quot;\\n&quot;, &quot;&quot;)<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u4efb\u4f55\u5b57\u7b26\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u4f1a\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u6240\u6709\u5339\u914d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001<code>splitlines()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>splitlines()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u6309\u884c\u5206\u5272\uff0c\u7136\u540e\u518d\u5c06\u8fd9\u4e9b\u884c\u7ec4\u5408\u8d77\u6765\uff0c\u4ece\u800c\u53bb\u6389\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\nWorld\\n&quot;<\/p>\n<p>lines = s.splitlines()<\/p>\n<p>s = &quot;&quot;.join(lines)<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5904\u7406\u591a\u884c\u5b57\u7b26\u4e32\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u4ee3\u7801\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001<code>join()<\/code> \u65b9\u6cd5\u7ed3\u5408 <code>split()<\/code><\/h3>\n<\/p>\n<p><p>\u4f7f\u7528 <code>split()<\/code> \u65b9\u6cd5\u5c06\u5b57\u7b26\u4e32\u6309\u7a7a\u767d\u5b57\u7b26\u5206\u5272\u6210\u591a\u4e2a\u90e8\u5206\uff0c\u7136\u540e\u4f7f\u7528 <code>join()<\/code> \u65b9\u6cd5\u5c06\u8fd9\u4e9b\u90e8\u5206\u7ec4\u5408\u8d77\u6765\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\nWorld\\n&quot;<\/p>\n<p>s = &quot;&quot;.join(s.split())<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u53bb\u6389\u6240\u6709\u7a7a\u767d\u5b57\u7b26\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u4f1a\u53bb\u6389\u6240\u6709\u7a7a\u767d\u5b57\u7b26\uff0c\u5305\u62ec\u7a7a\u683c\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001<code>re<\/code> \u6a21\u5757\u7684 <code>sub()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528 <code>re<\/code> \u6a21\u5757\u7684 <code>sub()<\/code> \u65b9\u6cd5\u6765\u53bb\u6389\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>s = &quot;Hello\\nWorld\\n&quot;<\/p>\n<p>s = re.sub(r&quot;\\n&quot;, &quot;&quot;, s)<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5339\u914d\u4efb\u4f55\u6a21\u5f0f\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u9700\u8981\u5bfc\u5165 <code>re<\/code> \u6a21\u5757\uff0c\u4ee3\u7801\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4f7f\u7528 <code>translate()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>translate()<\/code> \u65b9\u6cd5\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u6620\u5c04\u8868\u6765\u66ff\u6362\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\nWorld\\n&quot;<\/p>\n<p>s = s.translate({ord(&#39;\\n&#39;): None})<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u975e\u5e38\u9ad8\u6548\u5730\u66ff\u6362\u5b57\u7b26\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u4ee3\u7801\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u9700\u8981\u521b\u5efa\u5b57\u7b26\u6620\u5c04\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001<code>rstrip()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>rstrip()<\/code> \u65b9\u6cd5\u7c7b\u4f3c\u4e8e <code>strip()<\/code> \u65b9\u6cd5\uff0c\u4f46\u5b83\u53ea\u79fb\u9664\u5b57\u7b26\u4e32\u672b\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;Hello\\n&quot;<\/p>\n<p>s = s.rstrip()<\/p>\n<p>print(s)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u660e\u4e86\uff0c\u4f46\u5b83\u53ea\u80fd\u53bb\u6389\u5b57\u7b26\u4e32\u672b\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001<code>lstrip()<\/code> \u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>lstrip()<\/code> \u65b9\u6cd5\u7c7b\u4f3c\u4e8e <code>strip()<\/code> \u65b9\u6cd5\uff0c\u4f46\u5b83\u53ea\u79fb\u9664\u5b57\u7b26\u4e32\u5f00\u5934\u7684\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;\\nHello&quot;<\/p>\n<p>s = s.lstrip()<\/p>\n<p>print(s)  # \u8f93\u51fa: Hello<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u7b80\u5355\u660e\u4e86\uff0c\u4f46\u5b83\u53ea\u80fd\u53bb\u6389\u5b57\u7b26\u4e32\u5f00\u5934\u7684\u7a7a\u767d\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001\u6587\u4ef6\u64cd\u4f5c\u4e2d\u7684\u6362\u884c\u7b26\u5904\u7406<\/h3>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u4ef6\u65f6\uff0c\u7ecf\u5e38\u9700\u8981\u53bb\u6389\u6bcf\u884c\u672b\u5c3e\u7684\u6362\u884c\u7b26\u3002\u53ef\u4ee5\u4f7f\u7528 <code>strip()<\/code> \u65b9\u6cd5\u6765\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;file.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    lines = file.readlines()<\/p>\n<p>    lines = [line.strip() for line in lines]<\/p>\n<p>print(lines)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u53ef\u4ee5\u5904\u7406\u6587\u4ef6\u4e2d\u7684\u6bcf\u4e00\u884c\uff0c\u4f46\u5b83\u7684\u7f3a\u70b9\u662f\u4ee3\u7801\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u7efc\u5408\u5e94\u7528<\/h3>\n<\/p>\n<p><p>\u6839\u636e\u5177\u4f53\u9700\u6c42\uff0c\u53ef\u4ee5\u7efc\u5408\u5e94\u7528\u4e0a\u8ff0\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u5148\u4f7f\u7528 <code>strip()<\/code> \u65b9\u6cd5\u53bb\u6389\u5934\u5c3e\u7684\u7a7a\u767d\u5b57\u7b26\uff0c\u518d\u4f7f\u7528 <code>replace()<\/code> \u65b9\u6cd5\u53bb\u6389\u4e2d\u95f4\u7684\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">s = &quot;\\nHello\\nWorld\\n&quot;<\/p>\n<p>s = s.strip().replace(&quot;\\n&quot;, &quot;&quot;)<\/p>\n<p>print(s)  # \u8f93\u51fa: HelloWorld<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7efc\u4e0a\u6240\u8ff0\uff0cPython \u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u53bb\u6389\u5b57\u7b26\u4e32\u4e2d\u7684\u6362\u884c\u7b26\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u7f3a\u70b9\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6267\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u5904\u7406\u6362\u884c\u7b26\u901a\u5e38\u6709\u591a\u79cd\u65b9\u6cd5\u3002\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u662f\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>replace()<\/code>\u65b9\u6cd5\u6765\u66ff\u6362\u6362\u884c\u7b26\uff08\u4f8b\u5982<code>\\n<\/code>\u6216<code>\\r\\n<\/code>\uff09\u4e3a\u7a7a\u5b57\u7b26\u4e32\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;Hello,\\nWorld!&quot;\ncleaned_text = text.replace(&quot;\\n&quot;, &quot;&quot;)\nprint(cleaned_text)  # \u8f93\u51fa: Hello,World!\n<\/code><\/pre>\n<p>\u6b64\u5916\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528<code>strip()<\/code>\u65b9\u6cd5\u53bb\u9664\u5b57\u7b26\u4e32\u524d\u540e\u7684\u6362\u884c\u7b26\uff0c\u9002\u5408\u5904\u7406\u4ece\u6587\u4ef6\u8bfb\u53d6\u7684\u6587\u672c\u3002<\/p>\n<p><strong>\u5728\u8bfb\u53d6\u6587\u4ef6\u65f6\u5982\u4f55\u53bb\u6389\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9\u65f6\uff0c\u901a\u5e38\u4f1a\u9047\u5230\u6362\u884c\u7b26\u3002\u53ef\u4ee5\u5728\u8bfb\u53d6\u884c\u540e\u76f4\u63a5\u8c03\u7528<code>strip()<\/code>\u65b9\u6cd5\uff0c\u6e05\u7406\u6bcf\u4e00\u884c\u7684\u524d\u540e\u7a7a\u683c\u548c\u6362\u884c\u7b26\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;file.txt&#39;, &#39;r&#39;) as file:\n    lines = [line.strip() for line in file]\n<\/code><\/pre>\n<p>\u8fd9\u6837\u5904\u7406\u540e\uff0c<code>lines<\/code>\u5217\u8868\u4e2d\u7684\u6bcf\u4e00\u884c\u90fd\u4e0d\u5305\u542b\u6362\u884c\u7b26\u3002<\/p>\n<p><strong>\u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u53bb\u6389\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>replace()<\/code>\u548c<code>strip()<\/code>\uff0c\u8fd8\u53ef\u4ee5\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u53bb\u6389\u6362\u884c\u7b26\u3002\u901a\u8fc7<code>re<\/code>\u6a21\u5757\u53ef\u4ee5\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u6587\u672c\u5904\u7406\u3002\u793a\u4f8b\u4ee3\u7801\u4e3a\uff1a  <\/p>\n<pre><code class=\"language-python\">import re\n\ntext = &quot;Hello,\\nWorld!&quot;\ncleaned_text = re.sub(r&#39;\\n&#39;, &#39;&#39;, text)\nprint(cleaned_text)  # \u8f93\u51fa: Hello,World!\n<\/code><\/pre>\n<p>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u53ef\u4ee5\u7075\u6d3b\u5339\u914d\u5404\u79cd\u6362\u884c\u7b26\u548c\u7a7a\u767d\u5b57\u7b26\uff0c\u975e\u5e38\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u6587\u672c\u683c\u5f0f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728 Python \u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u6cd5\u53bb\u6389\u6362\u884c\u7b26\uff0c\u5305\u62ec\u4f7f\u7528\u5b57\u7b26\u4e32\u7684 strip() \u65b9\u6cd5\u3001replace() [&hellip;]","protected":false},"author":3,"featured_media":1073748,"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\/1073732"}],"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=1073732"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1073732\/revisions"}],"predecessor-version":[{"id":1073750,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1073732\/revisions\/1073750"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1073748"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1073732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1073732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1073732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}