{"id":925910,"date":"2024-12-26T15:40:35","date_gmt":"2024-12-26T07:40:35","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/925910.html"},"modified":"2024-12-26T15:40:38","modified_gmt":"2024-12-26T07:40:38","slug":"python%e5%a6%82%e4%bd%95%e5%8a%a0%e8%a1%8c","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/925910.html","title":{"rendered":"python\u5982\u4f55\u52a0\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25062746\/34003e36-d7de-41f0-a0f5-ecac0d964c23.webp\" alt=\"python\u5982\u4f55\u52a0\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u6dfb\u52a0\u884c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u5217\u8868\u3001\u6587\u4ef6\u8bfb\u5199\u7b49\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u6362\u884c\u7b26&#39;\\n&#39;\u3001\u5728\u5217\u8868\u4e2d\u4f7f\u7528append()\u65b9\u6cd5\u6dfb\u52a0\u5143\u7d20\u3001\u901a\u8fc7\u6587\u4ef6\u64cd\u4f5c\u589e\u52a0\u65b0\u884c\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u5728\u5904\u7406\u6587\u4ef6\u65f6\uff0c\u901a\u8fc7\u6253\u5f00\u6587\u4ef6\u5e76\u4f7f\u7528write()\u65b9\u6cd5\u6765\u6dfb\u52a0\u65b0\u884c\u662f\u975e\u5e38\u5e38\u7528\u7684\u65b9\u5f0f\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u7b26\u4e32\u64cd\u4f5c\u4e2d\u7684\u6362\u884c\u7b26<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u672c\u8eab\u53ef\u4ee5\u5305\u542b\u6362\u884c\u7b26\uff0c\u4ee5\u4fbf\u5728\u6587\u672c\u4e2d\u6dfb\u52a0\u884c\u3002\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528<code>\\n<\/code>\uff08\u6362\u884c\u7b26\uff09\u53ef\u4ee5\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u63d2\u5165\u4e00\u4e2a\u65b0\u884c\u3002\u4f8b\u5982\uff1a<\/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>\u8fd9\u6bb5\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>Hello, World!<\/p>\n<p>Welcome to Python programming.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u5728\u5b9a\u4e49\u5b57\u7b26\u4e32\u65f6\u76f4\u63a5\u63d2\u5165\u65b0\u884c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u5217\u8868\u589e\u52a0\u884c<\/p>\n<\/p>\n<p><p>Python\u7684\u5217\u8868\u662f\u4e00\u4e2a\u975e\u5e38\u7075\u6d3b\u7684\u6570\u636e\u7ed3\u6784\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u5217\u8868\u4e2d\u6dfb\u52a0\u65b0\u5143\u7d20\u3002\u4f7f\u7528<code>append()<\/code>\u65b9\u6cd5\u53ef\u4ee5\u5728\u5217\u8868\u672b\u5c3e\u6dfb\u52a0\u65b0\u7684\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">lines = [&quot;First line&quot;, &quot;Second line&quot;]<\/p>\n<p>lines.append(&quot;Third line&quot;)<\/p>\n<p>print(lines)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>[&#39;First line&#39;, &#39;Second line&#39;, &#39;Third line&#39;]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5217\u8868\u5728\u9700\u8981\u52a8\u6001\u589e\u52a0\u884c\u65f6\u975e\u5e38\u6709\u7528\uff0c\u5c24\u5176\u662f\u5728\u9010\u884c\u5904\u7406\u6570\u636e\u65f6\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6587\u4ef6\u64cd\u4f5c\u4e2d\u6dfb\u52a0\u65b0\u884c<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u672c\u6587\u4ef6\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5728\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u884c\u3002\u53ef\u4ee5\u4f7f\u7528Python\u7684\u5185\u7f6e<code>open()<\/code>\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u65b0\u884c\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">with open(&#39;example.txt&#39;, &#39;a&#39;) as file:<\/p>\n<p>    file.write(&#39;\\nThis is a new line.&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>open()<\/code>\u51fd\u6570\u4ee5\u8ffd\u52a0\u6a21\u5f0f<code>&#39;a&#39;<\/code>\u6253\u5f00\u6587\u4ef6<code>example.txt<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>write()<\/code>\u65b9\u6cd5\u5728\u6587\u4ef6\u672b\u5c3e\u5199\u5165\u4e00\u4e2a\u65b0\u884c\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u5728\u73b0\u6709\u6587\u4ef6\u4e2d\u6dfb\u52a0\u6570\u636e\u65f6\u975e\u5e38\u6709\u6548\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u7ec4\u5408\u5b57\u7b26\u4e32<\/p>\n<\/p>\n<p><p>\u5728\u9700\u8981\u5c06\u591a\u884c\u6587\u672c\u5408\u5e76\u4e3a\u4e00\u4e2a\u6574\u4f53\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5b57\u7b26\u4e32\u7684<code>join()<\/code>\u65b9\u6cd5\u3002\u6b64\u65b9\u6cd5\u7279\u522b\u9002\u5408\u5c06\u5217\u8868\u4e2d\u7684\u5b57\u7b26\u4e32\u5143\u7d20\u7ec4\u5408\u6210\u4e00\u4e2a\u5b8c\u6574\u7684\u5b57\u7b26\u4e32\uff0c\u5e76\u5728\u6bcf\u4e2a\u5143\u7d20\u4e4b\u95f4\u63d2\u5165\u6362\u884c\u7b26\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">lines = [&quot;Line 1&quot;, &quot;Line 2&quot;, &quot;Line 3&quot;]<\/p>\n<p>text = &#39;\\n&#39;.join(lines)<\/p>\n<p>print(text)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>Line 1<\/p>\n<p>Line 2<\/p>\n<p>Line 3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>join()<\/code>\u65b9\u6cd5\u4e3a\u5c06\u591a\u4e2a\u5b57\u7b26\u4e32\u5143\u7d20\u7ed3\u5408\u5728\u4e00\u8d77\u63d0\u4f9b\u4e86\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u6cd5\uff0c\u540c\u65f6\u5141\u8bb8\u60a8\u6307\u5b9a\u5143\u7d20\u4e4b\u95f4\u7684\u5206\u9694\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u4f7f\u7528<code>readlines()<\/code>\u548c<code>writelines()<\/code>\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u5728\u5904\u7406\u6587\u4ef6\u65f6\uff0c<code>readlines()<\/code>\u548c<code>writelines()<\/code>\u65b9\u6cd5\u63d0\u4f9b\u4e86\u4e00\u79cd\u65b9\u4fbf\u7684\u65b9\u5f0f\u6765\u8bfb\u53d6\u548c\u5199\u5165\u591a\u884c\u6587\u672c\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u7528\u4e8e\u5c06\u6587\u4ef6\u5185\u5bb9\u52a0\u8f7d\u5230\u5185\u5b58\u4e2d\u8fdb\u884c\u5904\u7406\uff0c\u7136\u540e\u5c06\u4fee\u6539\u540e\u7684\u5185\u5bb9\u5199\u56de\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u6587\u4ef6\u5185\u5bb9<\/p>\n<p>with open(&#39;example.txt&#39;, &#39;r&#39;) as file:<\/p>\n<p>    lines = file.readlines()<\/p>\n<h2><strong>\u5728\u672b\u5c3e\u6dfb\u52a0\u65b0\u884c<\/strong><\/h2>\n<p>lines.append(&#39;This is an added line.\\n&#39;)<\/p>\n<h2><strong>\u5199\u56de\u6587\u4ef6<\/strong><\/h2>\n<p>with open(&#39;example.txt&#39;, &#39;w&#39;) as file:<\/p>\n<p>    file.writelines(lines)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u5728\u9700\u8981\u5bf9\u6587\u4ef6\u5185\u5bb9\u8fdb\u884c\u590d\u6742\u64cd\u4f5c\u65f6\u4f7f\u7528\uff0c\u4f8b\u5982\u5728\u7279\u5b9a\u4f4d\u7f6e\u63d2\u5165\u6216\u5220\u9664\u884c\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528<code>csv<\/code>\u6a21\u5757\u5904\u7406CSV\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8eCSV\u6587\u4ef6\uff0cPython\u7684<code>csv<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u5904\u7406\u884c\u6570\u636e\u3002\u4f7f\u7528<code>csv.writer()<\/code>\u53ef\u4ee5\u8f7b\u677e\u5730\u5728CSV\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>with open(&#39;data.csv&#39;, &#39;a&#39;, newline=&#39;&#39;) as csvfile:<\/p>\n<p>    writer = csv.writer(csvfile)<\/p>\n<p>    writer.writerow([&#39;New&#39;, &#39;Row&#39;, &#39;Data&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>csv<\/code>\u6a21\u5757\u4e3a\u5904\u7406CSV\u683c\u5f0f\u7684\u6570\u636e\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\uff0c\u5e76\u7b80\u5316\u4e86\u884c\u7684\u8ffd\u52a0\u548c\u4fee\u6539\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528<code>pandas<\/code>\u5e93\u5904\u7406\u6570\u636e<\/p>\n<\/p>\n<p><p><code>pandas<\/code>\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86DataFrame\u7ed3\u6784\u6765\u5b58\u50a8\u548c\u64cd\u4f5c\u6570\u636e\u3002\u5728DataFrame\u4e2d\u53ef\u4ee5\u901a\u8fc7<code>append()<\/code>\u65b9\u6cd5\u6765\u6dfb\u52a0\u65b0\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>df = pd.DataFrame({&#39;Column1&#39;: [1, 2], &#39;Column2&#39;: [3, 4]})<\/p>\n<p>new_row = pd.DataFrame({&#39;Column1&#39;: [5], &#39;Column2&#39;: [6]})<\/p>\n<p>df = df.append(new_row, ignore_index=True)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>   Column1  Column2<\/p>\n<p>0        1        3<\/p>\n<p>1        2        4<\/p>\n<p>2        5        6<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>pandas<\/code>\u5e93\u63d0\u4f9b\u4e86\u8bb8\u591a\u529f\u80fd\u5f3a\u5927\u7684\u65b9\u6cd5\u6765\u64cd\u4f5c\u548c\u5206\u6790\u6570\u636e\uff0c\u975e\u5e38\u9002\u5408\u5904\u7406\u5927\u578b\u6570\u636e\u96c6\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u4f7f\u7528<code>numpy<\/code>\u5e93\u5904\u7406\u6570\u7ec4<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6570\u503c\u6570\u636e\uff0c<code>numpy<\/code>\u5e93\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.vstack()<\/code>\u51fd\u6570\u5728\u6570\u7ec4\u4e2d\u6dfb\u52a0\u65b0\u884c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>array = np.array([[1, 2], [3, 4]])<\/p>\n<p>new_row = np.array([[5, 6]])<\/p>\n<p>array = np.vstack((array, new_row))<\/p>\n<p>print(array)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u51fa\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code>[[1 2]<\/p>\n<p> [3 4]<\/p>\n<p> [5 6]]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>numpy<\/code>\u5e93\u4e3a\u6570\u503c\u8ba1\u7b97\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u9002\u5408\u9700\u8981\u6267\u884c\u9ad8\u6548\u6570\u7ec4\u64cd\u4f5c\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\u6dfb\u52a0\u884c\u6709\u591a\u79cd\u65b9\u6cd5\u53ef\u4f9b\u9009\u62e9\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u7279\u5b9a\u7684\u5e94\u7528\u573a\u666f\u3002\u5728\u5904\u7406\u6587\u672c\u65f6\uff0c\u5b57\u7b26\u4e32\u64cd\u4f5c\u548c\u6587\u4ef6\u8bfb\u5199\u662f\u5e38\u7528\u7684\u65b9\u6cd5\uff1b\u5728\u5904\u7406\u7ed3\u6784\u5316\u6570\u636e\u65f6\uff0c<code>csv<\/code>\u3001<code>pandas<\/code>\u548c<code>numpy<\/code>\u7b49\u5e93\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u529f\u80fd\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u4ee3\u7801\u7684\u6548\u7387\u548c\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5728\u6587\u672c\u6587\u4ef6\u4e2d\u6dfb\u52a0\u65b0\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>open()<\/code>\u51fd\u6570\u4ee5\u8ffd\u52a0\u6a21\u5f0f\uff08&#39;a&#39;\uff09\u6253\u5f00\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528<code>write()<\/code>\u65b9\u6cd5\u6dfb\u52a0\u65b0\u884c\u3002\u8981\u786e\u4fdd\u5728\u65b0\u884c\u4e4b\u524d\u6dfb\u52a0\u6362\u884c\u7b26\uff0c\u53ef\u4ee5\u5728\u5199\u5165\u6587\u672c\u65f6\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a<code>\\n<\/code>\u3002\u793a\u4f8b\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">with open(&#39;\u6587\u4ef6\u540d.txt&#39;, &#39;a&#39;) as file:\n    file.write(&#39;\\n\u8fd9\u662f\u65b0\u6dfb\u52a0\u7684\u4e00\u884c\u3002&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u65b0\u884c\u5c06\u88ab\u6210\u529f\u6dfb\u52a0\u5230\u6587\u4ef6\u672b\u5c3e\u3002<\/p>\n<p><strong>\u5728Python\u5217\u8868\u4e2d\u5982\u4f55\u63d2\u5165\u65b0\u884c\u6216\u65b0\u5143\u7d20\uff1f<\/strong><br \/>\u82e5\u60f3\u5728Python\u7684\u5217\u8868\u4e2d\u63d2\u5165\u65b0\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528<code>insert()<\/code>\u65b9\u6cd5\u3002\u8be5\u65b9\u6cd5\u5141\u8bb8\u5728\u6307\u5b9a\u4f4d\u7f6e\u63d2\u5165\u65b0\u5143\u7d20\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>my_list.insert(2, &#39;\u65b0\u5143\u7d20&#39;)<\/code>\u53ef\u4ee5\u5728\u7d22\u5f152\u7684\u4f4d\u7f6e\u63d2\u5165\u65b0\u5143\u7d20\u3002\u8fd9\u6837\uff0c\u539f\u6709\u5143\u7d20\u4f1a\u76f8\u5e94\u5730\u5411\u540e\u79fb\u52a8\u3002<\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528Python\u5728\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u6362\u884c\u7b26\uff1f<\/strong><br \/>\u5728\u5904\u7406\u5b57\u7b26\u4e32\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u4e2d\u4f7f\u7528<code>\\n<\/code>\u6765\u6dfb\u52a0\u6362\u884c\u7b26\u3002\u4f8b\u5982\uff1a  <\/p>\n<pre><code class=\"language-python\">text = &quot;\u7b2c\u4e00\u884c\\n\u7b2c\u4e8c\u884c\\n\u7b2c\u4e09\u884c&quot;\nprint(text)\n<\/code><\/pre>\n<p>\u8f93\u51fa\u5c06\u663e\u793a\u4e3a\u4e24\u884c\u6587\u672c\uff0c<code>\u7b2c\u4e00\u884c<\/code>\u548c<code>\u7b2c\u4e8c\u884c<\/code>\u5c06\u88ab\u5206\u5f00\u3002\u8fd9\u79cd\u65b9\u6cd5\u5728\u683c\u5f0f\u5316\u8f93\u51fa\u65f6\u5c24\u5176\u6709\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u6dfb\u52a0\u884c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5982\u4f7f\u7528\u5b57\u7b26\u4e32\u64cd\u4f5c\u3001\u5217\u8868\u3001\u6587\u4ef6\u8bfb\u5199\u7b49\u3002\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u5b57\u7b26\u4e32\u7684 [&hellip;]","protected":false},"author":3,"featured_media":925914,"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\/925910"}],"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=925910"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/925910\/revisions"}],"predecessor-version":[{"id":925916,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/925910\/revisions\/925916"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/925914"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=925910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=925910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=925910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}