{"id":947875,"date":"2024-12-26T23:57:39","date_gmt":"2024-12-26T15:57:39","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/947875.html"},"modified":"2024-12-26T23:57:41","modified_gmt":"2024-12-26T15:57:41","slug":"python%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8%e6%8d%a2%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/947875.html","title":{"rendered":"python()\u5982\u4f55\u4f7f\u7528\u6362\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25083500\/be446ea7-c9f7-4f2c-867e-425806b45208.webp\" alt=\"python()\u5982\u4f55\u4f7f\u7528\u6362\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u4f7f\u7528\u6362\u884c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528<code>\\n<\/code>\u3001\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u548c<code>os.linesep<\/code>\u3002\u4f7f\u7528<code>\\n<\/code>\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\uff0c\u5b83\u5728\u5b57\u7b26\u4e32\u4e2d\u63d2\u5165\u4e00\u4e2a\u6362\u884c\u7b26\u3002\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u5141\u8bb8\u8de8\u591a\u884c\u7684\u5b57\u7b26\u4e32\uff0c\u800c\u65e0\u9700\u663e\u5f0f\u4f7f\u7528\u6362\u884c\u7b26\u3002\u4f7f\u7528<code>os.linesep<\/code>\u53ef\u4ee5\u6839\u636e\u64cd\u4f5c\u7cfb\u7edf\u81ea\u52a8\u9009\u62e9\u5408\u9002\u7684\u6362\u884c\u7b26\uff0c\u9002\u7528\u4e8e\u9700\u8981\u8de8\u5e73\u53f0\u517c\u5bb9\u7684\u5e94\u7528\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>\\n<\/code>\u6765\u63d2\u5165\u6362\u884c\u7b26\u3002\u5bf9\u4e8e\u9700\u8981\u5728\u5b57\u7b26\u4e32\u5185\u5305\u542b\u591a\u884c\u6587\u672c\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\uff08<code>&#39;&#39;&#39;<\/code>\u6216<code>&quot;&quot;&quot;<\/code>\uff09\uff0c\u8fd9\u5728\u7f16\u5199\u591a\u884c\u6ce8\u91ca\u6216\u6587\u6863\u5b57\u7b26\u4e32\u65f6\u5c24\u5176\u6709\u7528\u3002\u82e5\u9700\u8981\u786e\u4fdd\u4ee3\u7801\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Windows\u3001Linux\u3001macOS\uff09\u4e0a\u8868\u73b0\u4e00\u81f4\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.linesep<\/code>\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u6bcf\u4e00\u79cd\u65b9\u6cd5\u53ca\u5176\u9002\u7528\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528<code>\\n<\/code>\u6362\u884c\u7b26<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c<code>\\n<\/code>\u662f\u4e00\u4e2a\u4ee3\u8868\u6362\u884c\u7684\u8f6c\u4e49\u5b57\u7b26\u3002\u5b83\u53ef\u4ee5\u63d2\u5165\u5230\u5b57\u7b26\u4e32\u4e2d\uff0c\u6307\u793a\u5728\u8be5\u4f4d\u7f6e\u6362\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;Hello, World!\\nWelcome to Python programming.&quot;<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5b57\u7b26\u4e32<code>text<\/code>\u4f1a\u5728\u8f93\u51fa\u65f6\u88ab\u5206\u6210\u4e24\u884c\uff0c\u56e0\u4e3a<code>\\n<\/code>\u5728<code>&quot;Hello, World!&quot;<\/code>\u548c<code>&quot;Welcome to Python programming.&quot;<\/code>\u4e4b\u95f4\u63d2\u5165\u4e86\u4e00\u4e2a\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u573a\u666f\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u5b57\u7b26\u4e32\u4e2d\u63d2\u5165\u6362\u884c<\/strong>\uff1a\u5f53\u4f60\u9700\u8981\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u8868\u793a\u591a\u884c\u6587\u672c\u65f6\uff0c<code>\\n<\/code>\u662f\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u3002<\/li>\n<li><strong>\u683c\u5f0f\u5316\u8f93\u51fa<\/strong>\uff1a\u5728\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>\\n<\/code>\u6765\u786e\u4fdd\u8f93\u51fa\u7684\u683c\u5f0f\u7b26\u5408\u9884\u671f\u3002<\/li>\n<\/ul>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\uff08<code>&#39;&#39;&#39;<\/code>\u6216<code>&quot;&quot;&quot;<\/code>\uff09\u5141\u8bb8\u8de8\u8d8a\u591a\u884c\uff0c\u4e14\u65e0\u9700\u663e\u5f0f\u4f7f\u7528<code>\\n<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">text = &quot;&quot;&quot;Hello, World!<\/p>\n<p>Welcome to Python programming.&quot;&quot;&quot;<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u76f4\u63a5\u7f16\u5199\u591a\u884c\u6587\u672c\uff0c\u800c\u4e0d\u9700\u8981\u5728\u6bcf\u884c\u672b\u5c3e\u63d2\u5165<code>\\n<\/code>\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u573a\u666f\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u591a\u884c\u6587\u672c\u6216\u6587\u6863\u5b57\u7b26\u4e32<\/strong>\uff1a\u5728\u7f16\u5199\u51fd\u6570\u7684\u6587\u6863\u5b57\u7b26\u4e32\uff08docstring\uff09\u65f6\uff0c\u901a\u5e38\u4f7f\u7528\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u3002<\/li>\n<li><strong>\u591a\u884c\u6ce8\u91ca<\/strong>\uff1a\u867d\u7136Python\u6ca1\u6709\u4e13\u95e8\u7684\u591a\u884c\u6ce8\u91ca\u8bed\u6cd5\uff0c\u4f46\u53ef\u4ee5\u4f7f\u7528\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u6765\u5b9e\u73b0\u7c7b\u4f3c\u6548\u679c\u3002<\/li>\n<\/ul>\n<p><p>\u4e09\u3001\u4f7f\u7528<code>os.linesep<\/code><\/p>\n<\/p>\n<p><p><code>os.linesep<\/code>\u662fPython\u7684<code>os<\/code>\u6a21\u5757\u4e2d\u7684\u4e00\u4e2a\u53d8\u91cf\uff0c\u5b83\u6839\u636e\u5f53\u524d\u64cd\u4f5c\u7cfb\u7edf\u7684\u6807\u51c6\u6765\u63d0\u4f9b\u5408\u9002\u7684\u6362\u884c\u7b26\u3002\u5728Windows\u4e0a\uff0c<code>os.linesep<\/code>\u7684\u503c\u662f<code>\\r\\n<\/code>\uff0c\u800c\u5728Unix\u548cLinux\u4e0a\u5219\u662f<code>\\n<\/code>\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>text = f&quot;Hello, World!{os.linesep}Welcome to Python programming.&quot;<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>os.linesep<\/code>\u53ef\u4ee5\u786e\u4fdd\u4f60\u7684\u4ee3\u7801\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8868\u73b0\u4e00\u81f4\u3002<\/p>\n<\/p>\n<p><p><strong>\u4f7f\u7528\u573a\u666f\uff1a<\/strong><\/p>\n<\/p>\n<ul>\n<li><strong>\u8de8\u5e73\u53f0\u5e94\u7528<\/strong>\uff1a\u5f53\u7f16\u5199\u9700\u8981\u5728\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u8fd0\u884c\u7684\u4ee3\u7801\u65f6\uff0c\u4f7f\u7528<code>os.linesep<\/code>\u53ef\u4ee5\u907f\u514d\u56e0\u6362\u884c\u7b26\u4e0d\u540c\u800c\u5bfc\u81f4\u7684\u683c\u5f0f\u95ee\u9898\u3002<\/li>\n<li><strong>\u6587\u4ef6\u64cd\u4f5c<\/strong>\uff1a\u5728\u8bfb\u5199\u6587\u4ef6\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os.linesep<\/code>\u6765\u786e\u4fdd\u6587\u4ef6\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u6253\u5f00\u65f6\u683c\u5f0f\u6b63\u786e\u3002<\/li>\n<\/ul>\n<p><p>\u56db\u3001\u6362\u884c\u7b26\u7684\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u5728\u4f7f\u7528\u6362\u884c\u7b26\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u4ee5\u4e0b\u51e0\u70b9\uff1a<\/p>\n<\/p>\n<ul>\n<li><strong>\u6362\u884c\u7b26\u4e0e\u6587\u4ef6\u8bfb\u53d6<\/strong>\uff1a\u5728\u8bfb\u53d6\u6587\u672c\u6587\u4ef6\u65f6\uff0c\u6362\u884c\u7b26\u4f1a\u88ab\u8bc6\u522b\u4e3a\u884c\u7ec8\u6b62\u7b26\u3002\u56e0\u6b64\uff0c\u5728\u5904\u7406\u6587\u4ef6\u5185\u5bb9\u65f6\uff0c\u9700\u8981\u8003\u8651\u6362\u884c\u7b26\u7684\u5b58\u5728\u3002<\/li>\n<li><strong>\u8de8\u5e73\u53f0\u517c\u5bb9<\/strong>\uff1a\u4e0d\u540c\u64cd\u4f5c\u7cfb\u7edf\u4f7f\u7528\u4e0d\u540c\u7684\u6362\u884c\u7b26\uff0cWindows\u4f7f\u7528<code>\\r\\n<\/code>\uff0c\u800cUnix\u548cLinux\u4f7f\u7528<code>\\n<\/code>\u3002\u5728\u8fdb\u884c\u8de8\u5e73\u53f0\u5f00\u53d1\u65f6\uff0c\u9700\u7279\u522b\u6ce8\u610f\u8fd9\u4e00\u70b9\u3002<\/li>\n<li><strong>\u5b57\u7b26\u4e32\u5904\u7406<\/strong>\uff1a\u5728\u8fdb\u884c\u5b57\u7b26\u4e32\u64cd\u4f5c\u65f6\uff0c\u6bd4\u5982\u5206\u5272\u6216\u8fde\u63a5\u5b57\u7b26\u4e32\uff0c\u9700\u7559\u610f\u6362\u884c\u7b26\u7684\u5f71\u54cd\u3002<\/li>\n<\/ul>\n<p><p>\u4e94\u3001\u6362\u884c\u7b26\u7684\u9ad8\u7ea7\u7528\u6cd5<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u590d\u6742\u6587\u672c\u6216\u6570\u636e\u6d41\u65f6\uff0c\u6362\u884c\u7b26\u7684\u4f7f\u7528\u53ef\u80fd\u4f1a\u6d89\u53ca\u5230\u4e00\u4e9b\u9ad8\u7ea7\u6280\u672f\uff0c\u6bd4\u5982\u6b63\u5219\u8868\u8fbe\u5f0f\u3001\u6587\u672c\u89e3\u6790\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\u7684\u6362\u884c\u7b26<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5904\u7406\u6362\u884c\u7b26\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>re.DOTALL<\/code>\u6807\u5fd7\u53ef\u4ee5\u8ba9<code>.<\/code>\u5339\u914d\u5305\u62ec\u6362\u884c\u7b26\u5728\u5185\u7684\u6240\u6709\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<p>text = &quot;Hello, World!\\nWelcome to Python programming.&quot;<\/p>\n<p>match = re.search(r&#39;.*&#39;, text, re.DOTALL)<\/p>\n<p>print(match.group())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6587\u672c\u89e3\u6790\u548c\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5904\u7406\u81ea\u7136\u8bed\u8a00\u6587\u672c\u6216\u65e5\u5fd7\u6587\u4ef6\u65f6\uff0c\u6362\u884c\u7b26\u662f\u5206\u9694\u6587\u672c\u5757\u7684\u91cd\u8981\u6807\u8bb0\u3002\u53ef\u4ee5\u5229\u7528\u5b83\u4eec\u6765\u89e3\u6790\u548c\u5206\u6790\u6587\u672c\u6570\u636e\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6587\u4ef6\u8bfb\u5199\u4e2d\u7684\u6362\u884c<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u6587\u4ef6\u64cd\u4f5c\u4e2d\uff0c\u6362\u884c\u7b26\u7684\u5904\u7406\u81f3\u5173\u91cd\u8981\u3002Python\u7684<code>open()<\/code>\u51fd\u6570\u9ed8\u8ba4\u4ee5\u6587\u672c\u6a21\u5f0f\u6253\u5f00\u6587\u4ef6\uff0c\u5728\u8fd9\u79cd\u6a21\u5f0f\u4e0b\uff0cPython\u4f1a\u81ea\u52a8\u8f6c\u6362\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;example.txt&#39;, &#39;w&#39;) as file:<\/p>\n<p>    file.write(&quot;Hello, World!\\nWelcome to Python programming.&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u7075\u6d3b\u4f7f\u7528\u548c\u5904\u7406\u6362\u884c\u7b26\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u7f16\u7a0b\u9700\u6c42\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u6587\u672c\u8f93\u51fa\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6587\u672c\u89e3\u6790\uff0c\u638c\u63e1\u6362\u884c\u7b26\u7684\u4f7f\u7528\u90fd\u662f\u5fc5\u4e0d\u53ef\u5c11\u7684\u6280\u80fd\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5b9e\u73b0\u6362\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u6362\u884c\u7b26 <code>\\n<\/code> \u6765\u5b9e\u73b0\u6362\u884c\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u5b57\u7b26\u4e32\u4e2d\uff0c\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">print(&quot;\u7b2c\u4e00\u884c\\n\u7b2c\u4e8c\u884c&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u6bb5\u4ee3\u7801\u4f1a\u8f93\u51fa\u4e24\u884c\u6587\u672c\uff0c\u7b2c\u4e00\u884c\u548c\u7b2c\u4e8c\u884c\u4e4b\u95f4\u4f1a\u6709\u6362\u884c\u6548\u679c\u3002\u6b64\u5916\uff0c\u4f7f\u7528\u4e09\u91cd\u5f15\u53f7\uff08<code>&#39;&#39;&#39;<\/code> \u6216 <code>&quot;&quot;&quot;<\/code>\uff09\u4e5f\u53ef\u4ee5\u65b9\u4fbf\u5730\u521b\u5efa\u591a\u884c\u5b57\u7b26\u4e32\u3002<\/p>\n<p><strong>\u5728\u6253\u5370\u8f93\u51fa\u65f6\uff0c\u5982\u4f55\u81ea\u52a8\u6362\u884c\uff1f<\/strong><br \/>Python\u7684 <code>print()<\/code> \u51fd\u6570\u9ed8\u8ba4\u5728\u8f93\u51fa\u5185\u5bb9\u540e\u6dfb\u52a0\u6362\u884c\u7b26\u3002\u5982\u679c\u5e0c\u671b\u5728\u6253\u5370\u591a\u4e2a\u5185\u5bb9\u65f6\uff0c\u6bcf\u4e2a\u5185\u5bb9\u90fd\u5728\u65b0\u7684\u4e00\u884c\uff0c\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 <code>print()<\/code> \u51fd\u6570\u591a\u6b21\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">print(&quot;\u884c\u4e00&quot;)\nprint(&quot;\u884c\u4e8c&quot;)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u5f0f\u4f1a\u5c06\u201c\u884c\u4e00\u201d\u548c\u201c\u884c\u4e8c\u201d\u5206\u522b\u8f93\u51fa\u5728\u4e24\u884c\u4e2d\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u6362\u884c\u7b26\u800c\u4e0d\u5f71\u54cd\u8f93\u51fa\u683c\u5f0f\uff1f<\/strong><br \/>\u5982\u679c\u9700\u8981\u5728\u5b57\u7b26\u4e32\u4e2d\u5305\u542b\u6362\u884c\u7b26\u4f46\u4e0d\u5e0c\u671b\u7acb\u5373\u6362\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u539f\u59cb\u5b57\u7b26\u4e32\uff08\u5728\u5b57\u7b26\u4e32\u524d\u52a0 <code>r<\/code>\uff09\u3002\u539f\u59cb\u5b57\u7b26\u4e32\u4e2d\u7684\u5b57\u7b26\u4e0d\u4f1a\u88ab\u8f6c\u4e49\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u7559\u6362\u884c\u7b26\u7684\u6587\u5b57\u8868\u793a\uff0c\u800c\u4e0d\u5b9e\u9645\u6362\u884c\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">raw_string = r&quot;\u8fd9\u662f\u7b2c\u4e00\u884c\\n\u8fd9\u662f\u7b2c\u4e8c\u884c&quot;\nprint(raw_string)\n<\/code><\/pre>\n<p>\u8f93\u51fa\u5c06\u662f\u4e00\u4e2a\u5305\u542b <code>\\n<\/code> \u7684\u5b57\u7b26\u4e32\uff0c\u800c\u4e0d\u4f1a\u6362\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u4f7f\u7528\u6362\u884c\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528\\n\u3001\u4e09\u5f15\u53f7\u5b57\u7b26\u4e32\u548cos.linesep\u3002\u4f7f\u7528\\n\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5 [&hellip;]","protected":false},"author":3,"featured_media":947877,"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\/947875"}],"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=947875"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/947875\/revisions"}],"predecessor-version":[{"id":947878,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/947875\/revisions\/947878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/947877"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=947875"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=947875"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=947875"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}