{"id":1004007,"date":"2024-12-27T10:22:23","date_gmt":"2024-12-27T02:22:23","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1004007.html"},"modified":"2024-12-27T10:22:30","modified_gmt":"2024-12-27T02:22:30","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e6%8f%90%e5%8f%96excel","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1004007.html","title":{"rendered":"\u5982\u4f55\u7528python\u63d0\u53d6excel"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25081130\/a1dc02f4-7a62-4119-a154-099f85fcb6e1.webp\" alt=\"\u5982\u4f55\u7528python\u63d0\u53d6excel\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u63d0\u53d6Excel\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u5e93\u3001openpyxl\u5e93\u3001xlrd\u5e93\u7b49\u3002pandas\u5e93\u529f\u80fd\u5f3a\u5927\u4e14\u6613\u4e8e\u4f7f\u7528\u3001openpyxl\u652f\u6301\u591a\u79cdExcel\u683c\u5f0f\u3001xlrd\u4e3b\u8981\u7528\u4e8e\u8bfb\u53d6\u65e7\u7248Excel\u683c\u5f0f\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528pandas\u5e93\u63d0\u53d6Excel\u6587\u4ef6\u7684\u65b9\u6cd5\u3002<\/strong><\/p>\n<\/p>\n<p><p>\u4e00\u3001PANDAS\u5e93\u7684\u5b89\u88c5\u4e0e\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u5904\u7406\u5de5\u5177\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u4fbf\u6377\u7684\u65b9\u6cd5\u6765\u5904\u7406Excel\u6587\u4ef6\u3002\u8981\u4f7f\u7528pandas\u5e93\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u5b83\u3002\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u5e93\u4e2d\u7684<code>read_excel<\/code>\u51fd\u6570\u8bfb\u53d6Excel\u6587\u4ef6\u3002\u8fd9\u4e2a\u51fd\u6570\u80fd\u591f\u8bfb\u53d6Excel\u6587\u4ef6\u4e2d\u7684\u6570\u636e\u5e76\u5c06\u5176\u8f6c\u6362\u4e3aDataFrame\u5bf9\u8c61\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u57fa\u672c\u7684\u7528\u6cd5\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u8bfb\u53d6Excel\u6587\u4ef6<\/strong><\/h2>\n<p>df = pd.read_excel(&#39;example.xlsx&#39;)<\/p>\n<h2><strong>\u663e\u793a\u6570\u636e<\/strong><\/h2>\n<p>print(df.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>read_excel<\/code>\u51fd\u6570\u8bfb\u53d6\u4e86\u540d\u4e3a<code>example.xlsx<\/code>\u7684Excel\u6587\u4ef6\uff0c\u5e76\u5c06\u6570\u636e\u5b58\u50a8\u5728DataFrame\u5bf9\u8c61<code>df<\/code>\u4e2d\u3002\u901a\u8fc7<code>df.head()<\/code>\u53ef\u4ee5\u67e5\u770b\u524d\u4e94\u884c\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u8bfb\u53d6\u591a\u4e2a\u5de5\u4f5c\u8868<\/p>\n<\/p>\n<p><p>Excel\u6587\u4ef6\u901a\u5e38\u5305\u542b\u591a\u4e2a\u5de5\u4f5c\u8868\uff0cpandas\u5141\u8bb8\u6211\u4eec\u6307\u5b9a\u8981\u8bfb\u53d6\u7684\u5de5\u4f5c\u8868\u3002\u53ef\u4ee5\u4f7f\u7528<code>sheet_name<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u5de5\u4f5c\u8868\u7684\u540d\u79f0\u6216\u7d22\u5f15\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u7279\u5b9a\u7684\u5de5\u4f5c\u8868<\/p>\n<p>df_sheet1 = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;)<\/p>\n<h2><strong>\u4f7f\u7528\u5de5\u4f5c\u8868\u7d22\u5f15<\/strong><\/h2>\n<p>df_sheet2 = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=1)<\/p>\n<h2><strong>\u663e\u793a\u6570\u636e<\/strong><\/h2>\n<p>print(df_sheet1.head())<\/p>\n<p>print(df_sheet2.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u9996\u5148\u901a\u8fc7\u5de5\u4f5c\u8868\u540d\u79f0<code>Sheet1<\/code>\u8bfb\u53d6\u6570\u636e\uff0c\u7136\u540e\u901a\u8fc7\u5de5\u4f5c\u8868\u7d22\u5f15<code>1<\/code>\u8bfb\u53d6\u7b2c\u4e8c\u4e2a\u5de5\u4f5c\u8868\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u9009\u62e9\u7279\u5b9a\u7684\u5217\u548c\u884c<\/p>\n<\/p>\n<p><p>\u5728\u63d0\u53d6Excel\u6570\u636e\u65f6\uff0c\u53ef\u80fd\u53ea\u9700\u8981\u67d0\u4e9b\u7279\u5b9a\u7684\u5217\u6216\u884c\u3002pandas\u5141\u8bb8\u6211\u4eec\u901a\u8fc7<code>usecols<\/code>\u548c<code>skiprows<\/code>\u53c2\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u9009\u62e9\u7279\u5b9a\u7684\u5217<\/p>\n<p>df_cols = pd.read_excel(&#39;example.xlsx&#39;, usecols=[&#39;A&#39;, &#39;B&#39;, &#39;C&#39;])<\/p>\n<h2><strong>\u8df3\u8fc7\u7279\u5b9a\u7684\u884c<\/strong><\/h2>\n<p>df_rows = pd.read_excel(&#39;example.xlsx&#39;, skiprows=2)<\/p>\n<h2><strong>\u663e\u793a\u6570\u636e<\/strong><\/h2>\n<p>print(df_cols.head())<\/p>\n<p>print(df_rows.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>usecols<\/code>\u53c2\u6570\u6307\u5b9a\u4e86\u8981\u8bfb\u53d6\u7684\u5217\uff0c\u800c<code>skiprows<\/code>\u53c2\u6570\u5219\u6307\u5b9a\u8981\u8df3\u8fc7\u7684\u884c\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u6570\u636e\u6e05\u6d17\u4e0e\u5904\u7406<\/p>\n<\/p>\n<p><p>\u5728\u8bfb\u53d6Excel\u6570\u636e\u540e\uff0c\u901a\u5e38\u9700\u8981\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u548c\u5904\u7406\u3002pandas\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u65b9\u6cd5\u6765\u5e2e\u52a9\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff0c\u4f8b\u5982\u5220\u9664\u7f3a\u5931\u503c\u3001\u586b\u5145\u7f3a\u5931\u503c\u3001\u6570\u636e\u8f6c\u6362\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5220\u9664\u7f3a\u5931\u503c\u7684\u884c<\/p>\n<p>df_cleaned = df.dropna()<\/p>\n<h2><strong>\u586b\u5145\u7f3a\u5931\u503c<\/strong><\/h2>\n<p>df_filled = df.fillna(0)<\/p>\n<h2><strong>\u6570\u636e\u8f6c\u6362<\/strong><\/h2>\n<p>df[&#39;column_name&#39;] = df[&#39;column_name&#39;].astype(int)<\/p>\n<h2><strong>\u663e\u793a\u6570\u636e<\/strong><\/h2>\n<p>print(df_cleaned.head())<\/p>\n<p>print(df_filled.head())<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>dropna<\/code>\u65b9\u6cd5\u7528\u4e8e\u5220\u9664\u5305\u542b\u7f3a\u5931\u503c\u7684\u884c\uff0c<code>fillna<\/code>\u65b9\u6cd5\u7528\u4e8e\u586b\u5145\u7f3a\u5931\u503c\uff0c<code>astype<\/code>\u65b9\u6cd5\u7528\u4e8e\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u6570\u636e\u7684\u5bfc\u51fa<\/p>\n<\/p>\n<p><p>\u5904\u7406\u5b8c\u6570\u636e\u540e\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u5176\u5bfc\u51fa\u4e3a\u65b0\u7684Excel\u6587\u4ef6\u3002pandas\u63d0\u4f9b\u4e86<code>to_excel<\/code>\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5bfc\u51fa\u6570\u636e\u5230\u65b0\u7684Excel\u6587\u4ef6<\/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\u793a\u4f8b\u4e2d\uff0c<code>to_excel<\/code>\u65b9\u6cd5\u5c06DataFrame\u5bf9\u8c61\u5bfc\u51fa\u4e3a\u540d\u4e3a<code>output.xlsx<\/code>\u7684Excel\u6587\u4ef6\uff0c\u5e76\u4e14\u4e0d\u5305\u542b\u7d22\u5f15\u5217\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528OPENPYXL\u5e93<\/p>\n<\/p>\n<p><p>openpyxl\u662f\u53e6\u4e00\u4e2a\u5904\u7406Excel\u6587\u4ef6\u7684Python\u5e93\uff0c\u7279\u522b\u9002\u7528\u4e8e\u9700\u8981\u5bf9Excel\u6587\u4ef6\u8fdb\u884c\u590d\u6742\u7684\u8bfb\u5199\u64cd\u4f5c\u3002\u5b83\u652f\u6301\u5bf9Excel\u6587\u4ef6\u8fdb\u884c\u683c\u5f0f\u5316\u3001\u516c\u5f0f\u8ba1\u7b97\u7b49\u9ad8\u7ea7\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install openpyxl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528openpyxl\u8bfb\u53d6Excel\u6587\u4ef6\u7684\u57fa\u672c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from openpyxl import load_workbook<\/p>\n<h2><strong>\u52a0\u8f7dExcel\u6587\u4ef6<\/strong><\/h2>\n<p>workbook = load_workbook(&#39;example.xlsx&#39;)<\/p>\n<h2><strong>\u83b7\u53d6\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook[&#39;Sheet1&#39;]<\/p>\n<h2><strong>\u8bfb\u53d6\u5355\u5143\u683c\u6570\u636e<\/strong><\/h2>\n<p>value = sheet[&#39;A1&#39;].value<\/p>\n<p>print(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>load_workbook<\/code>\u65b9\u6cd5\u7528\u4e8e\u52a0\u8f7dExcel\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7\u5de5\u4f5c\u8868\u540d\u79f0\u83b7\u53d6\u7279\u5b9a\u7684\u5de5\u4f5c\u8868\uff0c\u5e76\u8bfb\u53d6\u6307\u5b9a\u5355\u5143\u683c\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u4e03\u3001\u4f7f\u7528xlrd\u5e93<\/p>\n<\/p>\n<p><p>xlrd\u662f\u53e6\u4e00\u4e2a\u7528\u4e8e\u8bfb\u53d6Excel\u6587\u4ef6\u7684\u5e93\uff0c\u4f46\u5b83\u53ea\u652f\u6301\u65e7\u7248Excel\u683c\u5f0f\uff08.xls\uff09\u3002\u5728\u5904\u7406\u65e7\u7248Excel\u6587\u4ef6\u65f6\uff0cxlrd\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install xlrd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4ee5\u4e0b\u662f\u4f7f\u7528xlrd\u8bfb\u53d6Excel\u6587\u4ef6\u7684\u57fa\u672c\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import xlrd<\/p>\n<h2><strong>\u6253\u5f00Excel\u6587\u4ef6<\/strong><\/h2>\n<p>workbook = xlrd.open_workbook(&#39;example.xls&#39;)<\/p>\n<h2><strong>\u83b7\u53d6\u5de5\u4f5c\u8868<\/strong><\/h2>\n<p>sheet = workbook.sheet_by_name(&#39;Sheet1&#39;)<\/p>\n<h2><strong>\u8bfb\u53d6\u5355\u5143\u683c\u6570\u636e<\/strong><\/h2>\n<p>value = sheet.cell_value(0, 0)<\/p>\n<p>print(value)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>open_workbook<\/code>\u65b9\u6cd5\u7528\u4e8e\u6253\u5f00Excel\u6587\u4ef6\uff0c\u7136\u540e\u901a\u8fc7\u5de5\u4f5c\u8868\u540d\u79f0\u83b7\u53d6\u7279\u5b9a\u7684\u5de5\u4f5c\u8868\uff0c\u5e76\u8bfb\u53d6\u6307\u5b9a\u5355\u5143\u683c\u7684\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u63d0\u53d6Excel\u6587\u4ef6\u7684\u6570\u636e\u662f\u6570\u636e\u5206\u6790\u548c\u5904\u7406\u4e2d\u7684\u5e38\u89c1\u4efb\u52a1\u3002Python\u63d0\u4f9b\u4e86\u591a\u4e2a\u5e93\u6765\u7b80\u5316\u8fd9\u4e00\u8fc7\u7a0b\uff0c\u5982pandas\u3001openpyxl\u548cxlrd\u3002\u901a\u8fc7\u5408\u7406\u9009\u62e9\u548c\u4f7f\u7528\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5b8c\u6210Excel\u6587\u4ef6\u7684\u6570\u636e\u63d0\u53d6\u3001\u5904\u7406\u548c\u5bfc\u51fa\u4efb\u52a1\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u5e93\u548c\u65b9\u6cd5\uff0c\u4ee5\u4fbf\u66f4\u597d\u5730\u5904\u7406Excel\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u63d0\u53d6Excel\u6587\u4ef6\u4e2d\u7684\u7279\u5b9a\u6570\u636e\uff1f<\/strong><br \/>\u4f7f\u7528Python\u63d0\u53d6Excel\u6587\u4ef6\u4e2d\u7684\u7279\u5b9a\u6570\u636e\u901a\u5e38\u53ef\u4ee5\u901a\u8fc7<code>pandas<\/code>\u5e93\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u5df2\u5b89\u88c5<code>pandas<\/code>\u548c<code>openpyxl<\/code>\u6216<code>xlrd<\/code>\u5e93\u3002\u53ef\u4ee5\u4f7f\u7528<code>pandas.read_excel()<\/code>\u51fd\u6570\u8bfb\u53d6Excel\u6587\u4ef6\uff0c\u5e76\u901a\u8fc7\u6307\u5b9a\u53c2\u6570\u6765\u63d0\u53d6\u7279\u5b9a\u7684\u5217\u6216\u884c\u3002\u4f8b\u5982\uff0c\u82e5\u8981\u63d0\u53d6\u67d0\u4e00\u5217\u7684\u6570\u636e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>dataframe[&#39;\u5217\u540d&#39;]<\/code>\u7684\u65b9\u5f0f\u3002\u6b64\u5916\uff0c\u4f7f\u7528<code>query()<\/code>\u6216<code>loc[]<\/code>\u65b9\u6cd5\u53ef\u4ee5\u66f4\u7075\u6d3b\u5730\u7b5b\u9009\u6570\u636e\u3002<\/p>\n<p><strong>Python\u63d0\u53d6Excel\u65f6\uff0c\u5982\u4f55\u5904\u7406\u7a7a\u503c\u548c\u7f3a\u5931\u6570\u636e\uff1f<\/strong><br \/>\u5728\u63d0\u53d6Excel\u6570\u636e\u65f6\uff0c\u7a7a\u503c\u548c\u7f3a\u5931\u6570\u636e\u662f\u5e38\u89c1\u7684\u95ee\u9898\u3002\u53ef\u4ee5\u4f7f\u7528<code>pandas<\/code>\u7684<code>dropna()<\/code>\u65b9\u6cd5\u6765\u5220\u9664\u542b\u6709\u7f3a\u5931\u503c\u7684\u884c\u6216\u5217\uff0c\u6216\u8005\u4f7f\u7528<code>fillna()<\/code>\u65b9\u6cd5\u6765\u586b\u8865\u7f3a\u5931\u6570\u636e\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u7f3a\u5931\u503c\u586b\u5145\u4e3a0\u6216\u5176\u4ed6\u6307\u5b9a\u7684\u6570\u503c\u3002\u4e86\u89e3\u5982\u4f55\u5904\u7406\u8fd9\u4e9b\u6570\u636e\u6709\u52a9\u4e8e\u63d0\u9ad8\u6570\u636e\u5206\u6790\u7684\u51c6\u786e\u6027\u3002<\/p>\n<p><strong>\u5728\u63d0\u53d6Excel\u6570\u636e\u65f6\uff0c\u5982\u4f55\u63d0\u9ad8\u8bfb\u53d6\u6548\u7387\uff1f<\/strong><br \/>\u63d0\u9ad8Excel\u6570\u636e\u8bfb\u53d6\u6548\u7387\u7684\u4e00\u4e2a\u6709\u6548\u65b9\u6cd5\u662f\u4f7f\u7528<code>pandas<\/code>\u7684<code>chunksize<\/code>\u53c2\u6570\uff0c\u5141\u8bb8\u5c06\u6570\u636e\u5206\u5757\u8bfb\u53d6\u3002\u8fd9\u5bf9\u4e8e\u5904\u7406\u5927\u578bExcel\u6587\u4ef6\u7279\u522b\u6709\u7528\u3002\u6b64\u5916\uff0c\u5c3d\u91cf\u907f\u514d\u8bfb\u53d6\u4e0d\u5fc5\u8981\u7684\u5217\u548c\u884c\uff0c\u53ef\u4ee5\u901a\u8fc7<code>usecols<\/code>\u548c<code>skiprows<\/code>\u53c2\u6570\u6765\u4f18\u5316\u8bfb\u53d6\u8fc7\u7a0b\u3002\u8fd9\u6837\u53ef\u4ee5\u51cf\u5c11\u5185\u5b58\u4f7f\u7528\u5e76\u52a0\u5feb\u6570\u636e\u63d0\u53d6\u901f\u5ea6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u63d0\u53d6Excel\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u5e93\u3001openpyxl\u5e93\u3001xlrd\u5e93\u7b49\u3002pandas\u5e93\u529f [&hellip;]","protected":false},"author":3,"featured_media":1004025,"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\/1004007"}],"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=1004007"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004007\/revisions"}],"predecessor-version":[{"id":1004027,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1004007\/revisions\/1004027"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1004025"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1004007"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1004007"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1004007"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}