{"id":1131997,"date":"2025-01-08T20:53:21","date_gmt":"2025-01-08T12:53:21","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1131997.html"},"modified":"2025-01-08T20:53:24","modified_gmt":"2025-01-08T12:53:24","slug":"python%e6%95%b0%e7%bb%84%e4%b8%ad%e7%9a%84%e6%95%b0%e6%8d%ae%e5%a6%82%e4%bd%95%e8%be%93%e5%87%ba%e5%88%b0%e6%96%87%e4%bb%b6%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1131997.html","title":{"rendered":"python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5982\u4f55\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25101637\/32da4022-4687-4376-91d3-a9c695ede381.webp\" alt=\"python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5982\u4f55\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d\" \/><\/p>\n<p><p> <strong>Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5982\u4f55\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d<\/strong><\/p>\n<\/p>\n<p><p><strong>\u5c06Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff1a\u4f7f\u7528\u5185\u7f6e\u51fd\u6570open()\u3001\u5229\u7528csv\u6a21\u5757\u3001\u4f7f\u7528json\u6a21\u5757\u3001\u501f\u52a9pandas\u5e93\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570open()<\/strong>\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u4f7f\u7528Python\u5185\u7f6e\u7684open()\u51fd\u6570\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u7ec4\u6570\u636e\u5199\u5165\u6587\u4ef6\u3002\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u6587\u4ef6\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528write()\u6216writelines()\u65b9\u6cd5\u5c06\u6570\u636e\u5199\u5165\u6587\u4ef6\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\uff1a\u5c06\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5199\u5165\u6587\u4ef6<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&#39;output.txt&#39;, &#39;w&#39;) as f:<\/p>\n<p>    for item in data:<\/p>\n<p>        f.write(f&quot;{item}\\n&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5185\u7f6e\u51fd\u6570open()\u5199\u5165\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u4f7f\u7528Python\u7684\u5185\u7f6e\u51fd\u6570open()\u662f\u6700\u57fa\u672c\u4e14\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u901a\u8fc7open()\u51fd\u6570\u53ef\u4ee5\u521b\u5efa\u6587\u4ef6\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528write()\u6216writelines()\u65b9\u6cd5\u5c06\u6570\u636e\u5199\u5165\u6587\u4ef6\u3002\u8fd9\u4e2a\u65b9\u6cd5\u7684\u4f18\u70b9\u662f\u5b83\u975e\u5e38\u7b80\u5355\uff0c\u4e0d\u9700\u8981\u4efb\u4f55\u989d\u5916\u7684\u6a21\u5757\u6216\u5e93\u3002\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528open()\u51fd\u6570\u8fdb\u884c\u6587\u4ef6\u5199\u5165\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5199\u5165\u6587\u672c\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u5c06\u6570\u7ec4\u7684\u6570\u636e\u5199\u5165\u6587\u672c\u6587\u4ef6\u662f\u6700\u5e38\u89c1\u7684\u9700\u6c42\u4e4b\u4e00\u3002\u53ef\u4ee5\u901a\u8fc7\u904d\u5386\u6570\u7ec4\uff0c\u9010\u884c\u5199\u5165\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&#39;output.txt&#39;, &#39;w&#39;) as f:<\/p>\n<p>    for item in data:<\/p>\n<p>        f.write(f&quot;{item}\\n&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>&#39;w&#39;<\/code>\u6a21\u5f0f\u8868\u793a\u5199\u5165\uff08\u5982\u679c\u6587\u4ef6\u4e0d\u5b58\u5728\uff0c\u5219\u521b\u5efa\u6587\u4ef6\uff1b\u5982\u679c\u6587\u4ef6\u5b58\u5728\uff0c\u5219\u6e05\u7a7a\u6587\u4ef6\u5185\u5bb9\uff09\u3002<code>f.write(f&quot;{item}\\n&quot;)<\/code>\u8868\u793a\u5c06\u6bcf\u4e2a\u6570\u7ec4\u5143\u7d20\u5199\u5165\u6587\u4ef6\u5e76\u6362\u884c\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5199\u5165\u4e8c\u8fdb\u5236\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u6709\u65f6\u9700\u8981\u5c06\u6570\u636e\u5199\u5165\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\u9700\u8981\u4f7f\u7528<code>&#39;wb&#39;<\/code>\u6a21\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import struct<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&#39;output.bin&#39;, &#39;wb&#39;) as f:<\/p>\n<p>    for item in data:<\/p>\n<p>        f.write(struct.pack(&#39;i&#39;, item))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>struct.pack(&#39;i&#39;, item)<\/code>\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f\uff0c\u7136\u540e\u5199\u5165\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528csv\u6a21\u5757\u5199\u5165\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>CSV\uff08Comma-Separated Values\uff09\u6587\u4ef6\u662f\u4e00\u79cd\u975e\u5e38\u5e38\u89c1\u7684\u6570\u636e\u5b58\u50a8\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528Python\u7684csv\u6a21\u5757\u65b9\u4fbf\u5730\u5c06\u6570\u7ec4\u6570\u636e\u5199\u5165CSV\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5199\u5165\u4e00\u7ef4\u6570\u7ec4<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e00\u7ef4\u6570\u7ec4\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528csv\u6a21\u5757\u7684writer\u5bf9\u8c61\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&#39;output.csv&#39;, &#39;w&#39;, newline=&#39;&#39;) as f:<\/p>\n<p>    writer = csv.writer(f)<\/p>\n<p>    writer.writerow(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c<code>writer.writerow(data)<\/code>\u5c06\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u5143\u7d20\u5199\u5165\u4e00\u884c\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5199\u5165\u4e8c\u7ef4\u6570\u7ec4<\/h4>\n<\/p>\n<p><p>\u5bf9\u4e8e\u4e8c\u7ef4\u6570\u7ec4\uff0c\u53ef\u4ee5\u4f7f\u7528writerows()\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]<\/p>\n<p>with open(&#39;output.csv&#39;, &#39;w&#39;, newline=&#39;&#39;) as f:<\/p>\n<p>    writer = csv.writer(f)<\/p>\n<p>    writer.writerows(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>writer.writerows(data)<\/code>\u5c06\u6bcf\u4e2a\u5b50\u6570\u7ec4\u5199\u5165CSV\u6587\u4ef6\u4e2d\u7684\u4e00\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528json\u6a21\u5757\u5199\u5165\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>JSON\uff08JavaScript Object Notation\uff09\u662f\u4e00\u79cd\u8f7b\u91cf\u7ea7\u7684\u6570\u636e\u4ea4\u6362\u683c\u5f0f\uff0c\u975e\u5e38\u9002\u5408\u5b58\u50a8\u548c\u4f20\u8f93\u7ed3\u6784\u5316\u6570\u636e\u3002Python\u7684json\u6a21\u5757\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u7ec4\u6570\u636e\u5199\u5165JSON\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5199\u5165\u4e00\u7ef4\u6570\u7ec4<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&#39;output.json&#39;, &#39;w&#39;) as f:<\/p>\n<p>    json.dump(data, f)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>json.dump(data, f)<\/code>\u5c06\u6570\u7ec4\u6570\u636e\u4ee5JSON\u683c\u5f0f\u5199\u5165\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5199\u5165\u590d\u6742\u6570\u636e\u7ed3\u6784<\/h4>\n<\/p>\n<p><p>JSON\u6a21\u5757\u8fd8\u53ef\u4ee5\u5904\u7406\u66f4\u590d\u6742\u7684\u6570\u636e\u7ed3\u6784\uff0c\u5982\u5305\u542b\u5d4c\u5957\u6570\u7ec4\u548c\u5b57\u5178\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import json<\/p>\n<p>data = {<\/p>\n<p>    &quot;numbers&quot;: [1, 2, 3, 4, 5],<\/p>\n<p>    &quot;info&quot;: {&quot;name&quot;: &quot;example&quot;, &quot;value&quot;: 123}<\/p>\n<p>}<\/p>\n<p>with open(&#39;output.json&#39;, &#39;w&#39;) as f:<\/p>\n<p>    json.dump(data, f, indent=4)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c<code>indent=4<\/code>\u53c2\u6570\u4f7f\u8f93\u51fa\u7684JSON\u6587\u4ef6\u66f4\u52a0\u7f8e\u89c2\u548c\u6613\u8bfb\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528pandas\u5e93\u5199\u5165\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u5e93\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6570\u636e\u5199\u5165\u591a\u79cd\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u5982CSV\u3001Excel\u7b49\u3002<\/p>\n<\/p>\n<p><h4>1\u3001\u5199\u5165CSV\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>df = pd.DataFrame(data, columns=[&#39;Numbers&#39;])<\/p>\n<p>df.to_csv(&#39;output.csv&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u9996\u5148\u521b\u5efa\u4e00\u4e2aDataFrame\u5bf9\u8c61\uff0c\u7136\u540e\u4f7f\u7528to_csv()\u65b9\u6cd5\u5c06\u6570\u636e\u5199\u5165CSV\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h4>2\u3001\u5199\u5165Excel\u6587\u4ef6<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = [1, 2, 3, 4, 5]<\/p>\n<p>df = pd.DataFrame(data, columns=[&#39;Numbers&#39;])<\/p>\n<p>df.to_excel(&#39;output.xlsx&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u4f7f\u7528to_excel()\u65b9\u6cd5\u5c06\u6570\u636e\u5199\u5165Excel\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><h3>\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u53ef\u4ee5\u7075\u6d3b\u5730\u5c06Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5199\u5165\u6587\u4ef6\u3002<strong>\u4f7f\u7528\u5185\u7f6e\u51fd\u6570open()<\/strong>\u9002\u7528\u4e8e\u7b80\u5355\u7684\u6587\u4ef6\u5199\u5165\u64cd\u4f5c\uff1b<strong>csv\u6a21\u5757<\/strong>\u662f\u5904\u7406CSV\u6587\u4ef6\u7684\u7406\u60f3\u9009\u62e9\uff1b<strong>json\u6a21\u5757<\/strong>\u9002\u5408\u5904\u7406\u548c\u5b58\u50a8\u7ed3\u6784\u5316\u6570\u636e\uff1b\u800c<strong>pandas\u5e93<\/strong>\u5219\u975e\u5e38\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u5206\u6790\u548c\u5b58\u50a8\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><p>\u65e0\u8bba\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u90fd\u8981\u6ce8\u610f\u6587\u4ef6\u64cd\u4f5c\u7684\u57fa\u672c\u539f\u5219\uff0c\u5982\u786e\u4fdd\u6587\u4ef6\u6b63\u786e\u5173\u95ed\u3001\u5904\u7406\u6587\u4ef6\u8bfb\u5199\u5f02\u5e38\u7b49\u3002\u901a\u8fc7\u638c\u63e1\u8fd9\u4e9b\u6280\u5de7\uff0c\u53ef\u4ee5\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u6570\u636e\u7684\u5b58\u50a8\u548c\u5904\u7406\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u4fdd\u5b58\u4e3a\u6587\u672c\u6587\u4ef6\uff1f<\/strong><br \/>\u60a8\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>open()<\/code>\u51fd\u6570\u548c<code>write()<\/code>\u65b9\u6cd5\uff0c\u5c06\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u9010\u884c\u5199\u5165\u6587\u672c\u6587\u4ef6\u3002\u9996\u5148\uff0c\u5c06\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u683c\u5f0f\uff0c\u7136\u540e\u4f7f\u7528\u6587\u4ef6\u5bf9\u8c61\u8fdb\u884c\u5199\u5165\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5faa\u73af\u904d\u5386\u6570\u7ec4\uff0c\u5e76\u5c06\u6bcf\u4e2a\u5143\u7d20\u5199\u5165\u6587\u4ef6\u4e2d\u3002<\/p>\n<p><strong>\u53ef\u4ee5\u5c06Python\u6570\u7ec4\u5bfc\u51fa\u4e3aCSV\u6587\u4ef6\u5417\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5c06\u6570\u7ec4\u5bfc\u51fa\u4e3aCSV\u6587\u4ef6\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>csv<\/code>\u6a21\u5757\uff0c\u521b\u5efa\u4e00\u4e2a<code>writer<\/code>\u5bf9\u8c61\u5e76\u5c06\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e00\u884c\u5199\u5165CSV\u6587\u4ef6\u3002\u53e6\u4e00\u4e2a\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>pandas<\/code>\u5e93\uff0c\u5b83\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u7ec4\u8f6c\u6362\u4e3a\u6570\u636e\u6846\uff0c\u7136\u540e\u4f7f\u7528<code>to_csv()<\/code>\u65b9\u6cd5\u4fdd\u5b58\u4e3aCSV\u6587\u4ef6\u3002<\/p>\n<p><strong>\u5728\u8f93\u51fa\u6570\u636e\u65f6\uff0c\u5982\u4f55\u683c\u5f0f\u5316\u6570\u7ec4\u5185\u5bb9\uff1f<\/strong><br \/>\u53ef\u4ee5\u901a\u8fc7\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5728\u8f93\u51fa\u6587\u4ef6\u65f6\u63a7\u5236\u6570\u636e\u7684\u5c55\u793a\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7684\u529f\u80fd\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u5c0f\u6570\u4f4d\u6570\u3001\u5bf9\u9f50\u65b9\u5f0f\u7b49\u3002\u5728\u5199\u5165\u6587\u4ef6\u4e4b\u524d\uff0c\u53ef\u4ee5\u5148\u5bf9\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u683c\u5f0f\u5316\uff0c\u7136\u540e\u518d\u5199\u5165\u6587\u4ef6\uff0c\u786e\u4fdd\u8f93\u51fa\u7684\u5185\u5bb9\u7b26\u5408\u60a8\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u5982\u4f55\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d \u5c06Python\u6570\u7ec4\u4e2d\u7684\u6570\u636e\u8f93\u51fa\u5230\u6587\u4ef6\u4e2d\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u6cd5\u5b9e\u73b0\uff1a\u4f7f\u7528\u5185\u7f6e [&hellip;]","protected":false},"author":3,"featured_media":1132008,"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\/1131997"}],"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=1131997"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1131997\/revisions"}],"predecessor-version":[{"id":1132010,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1131997\/revisions\/1132010"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1132008"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1131997"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1131997"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1131997"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}