{"id":1129829,"date":"2025-01-08T20:32:59","date_gmt":"2025-01-08T12:32:59","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1129829.html"},"modified":"2025-01-08T20:33:01","modified_gmt":"2025-01-08T12:33:01","slug":"%e7%94%a8python%e5%a6%82%e4%bd%95%e5%b0%86xlsx%e8%bd%ac%e6%8d%a2%e6%88%90csv-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1129829.html","title":{"rendered":"\u7528python\u5982\u4f55\u5c06xlsx\u8f6c\u6362\u6210csv"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25100104\/025d668f-da82-45fc-8c8f-853c901f0d4b.webp\" alt=\"\u7528python\u5982\u4f55\u5c06xlsx\u8f6c\u6362\u6210csv\" \/><\/p>\n<p><p> <strong>\u4f7f\u7528Python\u5c06xlsx\u8f6c\u6362\u6210csv\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528pandas\u3001openpyxl\u6216xlrd\u7b49\u5e93\u3002<\/strong> \u5728\u672c\u6587\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63a8\u8350\u4e00\u4e9b\u9002\u7528\u573a\u666f\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u5b89\u88c5\u76f8\u5173\u5e93\u3001\u8bfb\u53d6xlsx\u6587\u4ef6\u3001\u8f6c\u6362\u6570\u636e\u683c\u5f0f\u5e76\u4fdd\u5b58\u4e3acsv\u6587\u4ef6\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u8fc7\u7a0b\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684Python\u5e93<\/h3>\n<\/p>\n<p><p>\u5728\u8f6c\u6362xlsx\u6587\u4ef6\u4e3acsv\u6587\u4ef6\u4e4b\u524d\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684Python\u5e93\u3002\u8fd9\u4e9b\u5e93\u5305\u62ecpandas\u3001openpyxl\u548cxlrd\u3002\u53ef\u4ee5\u4f7f\u7528pip\u547d\u4ee4\u6765\u5b89\u88c5\u8fd9\u4e9b\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas openpyxl xlrd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528pandas\u5e93\u8fdb\u884c\u8f6c\u6362<\/h3>\n<\/p>\n<p><p><strong>pandas<\/strong>\u662f\u4e00\u4e2a\u529f\u80fd\u5f3a\u5927\u7684\u6570\u636e\u5206\u6790\u5e93\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bb8\u591a\u4fbf\u6377\u7684\u65b9\u6cd5\u6765\u64cd\u4f5cExcel\u6587\u4ef6\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528pandas\u5e93\u5c06xlsx\u6587\u4ef6\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u8bfb\u53d6xlsx\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528pandas\u7684<code>read_excel<\/code>\u51fd\u6570\u6765\u8bfb\u53d6xlsx\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u8bfb\u53d6xlsx\u6587\u4ef6<\/strong><\/h2>\n<p>df = pd.read_excel(&#39;example.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8f6c\u6362\u5e76\u4fdd\u5b58\u4e3acsv\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528pandas\u7684<code>to_csv<\/code>\u51fd\u6570\u5c06DataFrame\u4fdd\u5b58\u4e3acsv\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4fdd\u5b58\u4e3acsv\u6587\u4ef6<\/p>\n<p>df.to_csv(&#39;example.csv&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5904\u7406\u591a\u4e2a\u5de5\u4f5c\u8868<\/h4>\n<\/p>\n<p><p>\u5982\u679cxlsx\u6587\u4ef6\u4e2d\u6709\u591a\u4e2a\u5de5\u4f5c\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528<code>sheet_name<\/code>\u53c2\u6570\u6765\u6307\u5b9a\u9700\u8981\u8bfb\u53d6\u7684\u5de5\u4f5c\u8868\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u8bfb\u53d6\u6307\u5b9a\u5de5\u4f5c\u8868<\/p>\n<p>df = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;)<\/p>\n<p>df.to_csv(&#39;example_sheet1.csv&#39;, index=False)<\/p>\n<h2><strong>\u8bfb\u53d6\u6240\u6709\u5de5\u4f5c\u8868\u5e76\u4fdd\u5b58\u4e3a\u591a\u4e2acsv\u6587\u4ef6<\/strong><\/h2>\n<p>xls = pd.ExcelFile(&#39;example.xlsx&#39;)<\/p>\n<p>for sheet_name in xls.sheet_names:<\/p>\n<p>    df = pd.read_excel(xls, sheet_name=sheet_name)<\/p>\n<p>    df.to_csv(f&#39;{sheet_name}.csv&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528openpyxl\u5e93\u8fdb\u884c\u8f6c\u6362<\/h3>\n<\/p>\n<p><p><strong>openpyxl<\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u8bfb\u53d6\u548c\u5199\u5165Excel 2010 xlsx\/xlsm\/xltx\/xltm\u6587\u4ef6\u7684Python\u5e93\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528openpyxl\u5e93\u5c06xlsx\u6587\u4ef6\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u8bfb\u53d6xlsx\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528openpyxl\u7684<code>load_workbook<\/code>\u51fd\u6570\u6765\u8bfb\u53d6xlsx\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from openpyxl import load_workbook<\/p>\n<h2><strong>\u8bfb\u53d6xlsx\u6587\u4ef6<\/strong><\/h2>\n<p>wb = load_workbook(&#39;example.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8f6c\u6362\u5e76\u4fdd\u5b58\u4e3acsv\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u904d\u5386\u5de5\u4f5c\u8868\u5e76\u5c06\u5176\u6570\u636e\u4fdd\u5b58\u4e3acsv\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>for sheet_name in wb.sheetnames:<\/p>\n<p>    sheet = wb[sheet_name]<\/p>\n<p>    with open(f&#39;{sheet_name}.csv&#39;, &#39;w&#39;, newline=&quot;&quot;) as file:<\/p>\n<p>        writer = csv.writer(file)<\/p>\n<p>        for row in sheet.iter_rows(values_only=True):<\/p>\n<p>            writer.writerow(row)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528xlrd\u5e93\u8fdb\u884c\u8f6c\u6362<\/h3>\n<\/p>\n<p><p><strong>xlrd<\/strong>\u662f\u4e00\u4e2a\u7528\u4e8e\u8bfb\u53d6Excel\u6587\u4ef6\u7684Python\u5e93\u3002\u867d\u7136\u5b83\u4e0d\u652f\u6301\u76f4\u63a5\u5199\u5165csv\u6587\u4ef6\uff0c\u4f46\u53ef\u4ee5\u4e0ecsv\u5e93\u7ed3\u5408\u4f7f\u7528\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528xlrd\u5e93\u5c06xlsx\u6587\u4ef6\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u8bfb\u53d6xlsx\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f7f\u7528xlrd\u7684<code>open_workbook<\/code>\u51fd\u6570\u6765\u8bfb\u53d6xlsx\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import xlrd<\/p>\n<h2><strong>\u8bfb\u53d6xlsx\u6587\u4ef6<\/strong><\/h2>\n<p>workbook = xlrd.open_workbook(&#39;example.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u8f6c\u6362\u5e76\u4fdd\u5b58\u4e3acsv\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u904d\u5386\u5de5\u4f5c\u8868\u5e76\u5c06\u5176\u6570\u636e\u4fdd\u5b58\u4e3acsv\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import csv<\/p>\n<p>for sheet_name in workbook.sheet_names():<\/p>\n<p>    sheet = workbook.sheet_by_name(sheet_name)<\/p>\n<p>    with open(f&#39;{sheet_name}.csv&#39;, &#39;w&#39;, newline=&quot;&quot;) as file:<\/p>\n<p>        writer = csv.writer(file)<\/p>\n<p>        for row_idx in range(sheet.nrows):<\/p>\n<p>            writer.writerow(sheet.row_values(row_idx))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5904\u7406\u590d\u6742\u7684Excel\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0cExcel\u6587\u4ef6\u53ef\u80fd\u5305\u542b\u516c\u5f0f\u3001\u5408\u5e76\u5355\u5143\u683c\u3001\u56fe\u8868\u7b49\u590d\u6742\u5185\u5bb9\u3002\u8fd9\u4e9b\u5185\u5bb9\u5728\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5904\u7406\u590d\u6742Excel\u6587\u4ef6\u7684\u5efa\u8bae\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5ffd\u7565\u516c\u5f0f<\/h4>\n<\/p>\n<p><p>\u5982\u679cExcel\u6587\u4ef6\u5305\u542b\u516c\u5f0f\uff0c\u53ef\u4ee5\u5728\u8bfb\u53d6\u6570\u636e\u65f6\u5ffd\u7565\u516c\u5f0f\uff0c\u53ea\u4fdd\u7559\u8ba1\u7b97\u7ed3\u679c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;, engine=&#39;openpyxl&#39;)<\/p>\n<p>df.to_csv(&#39;example_sheet1.csv&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5904\u7406\u5408\u5e76\u5355\u5143\u683c<\/h4>\n<\/p>\n<p><p>\u5408\u5e76\u5355\u5143\u683c\u5728\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u65f6\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6570\u636e\u4e22\u5931\u6216\u683c\u5f0f\u9519\u8bef\u3002\u53ef\u4ee5\u4f7f\u7528<code>merge_cells<\/code>\u53c2\u6570\u6765\u5904\u7406\u5408\u5e76\u5355\u5143\u683c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;, engine=&#39;openpyxl&#39;)<\/p>\n<p>df.to_csv(&#39;example_sheet1.csv&#39;, index=False, merge_cells=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5904\u7406\u56fe\u8868\u548c\u56fe\u7247<\/h4>\n<\/p>\n<p><p>\u56fe\u8868\u548c\u56fe\u7247\u5728csv\u6587\u4ef6\u4e2d\u65e0\u6cd5\u4fdd\u5b58\uff0c\u53ef\u4ee5\u9009\u62e9\u5ffd\u7565\u8fd9\u4e9b\u5185\u5bb9\uff0c\u6216\u4f7f\u7528\u5176\u4ed6\u65b9\u6cd5\u5355\u72ec\u5904\u7406\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5ffd\u7565\u56fe\u8868\u548c\u56fe\u7247<\/p>\n<p>df = pd.read_excel(&#39;example.xlsx&#39;, sheet_name=&#39;Sheet1&#39;, engine=&#39;openpyxl&#39;)<\/p>\n<p>df.to_csv(&#39;example_sheet1.csv&#39;, index=False)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06xlsx\u6587\u4ef6\u8f6c\u6362\u4e3acsv\u6587\u4ef6\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u9700\u6c42\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u4f7f\u7528pandas\u3001openpyxl\u548cxlrd\u7b49Python\u5e93\u8fdb\u884c\u8f6c\u6362\u7684\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5904\u7406\u590d\u6742Excel\u6587\u4ef6\u7684\u5efa\u8bae\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06xlsx\u6587\u4ef6\u8f6c\u6362\u4e3acsv\u6587\u4ef6\uff0c\u4ee5\u4fbf\u8fdb\u4e00\u6b65\u5206\u6790\u548c\u5904\u7406\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u548c\u5e93\uff0c\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u548c\u51c6\u786e\u6027\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u8ba9\u60a8\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u8fc7\u7a0b\u4e2d\u66f4\u52a0\u5f97\u5fc3\u5e94\u624b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u5c06.xlsx\u6587\u4ef6\u8f6c\u6362\u4e3a.csv\u6587\u4ef6\uff1f<\/strong><br \/>\u4f7f\u7528Python\u8fdb\u884c\u6587\u4ef6\u683c\u5f0f\u8f6c\u6362\u975e\u5e38\u7b80\u5355\u3002\u60a8\u53ef\u4ee5\u5229\u7528<code>pandas<\/code>\u5e93\u6765\u5b9e\u73b0\u8fd9\u4e2a\u529f\u80fd\u3002\u9996\u5148\uff0c\u786e\u4fdd\u60a8\u7684\u73af\u5883\u4e2d\u5df2\u5b89\u88c5<code>pandas<\/code>\u548c<code>openpyxl<\/code>\u5e93\u3002\u63a5\u4e0b\u6765\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u4ee3\u7801\u5c06.xlsx\u6587\u4ef6\u8f6c\u6362\u4e3a.csv\u6587\u4ef6\uff1a<\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\n# \u8bfb\u53d6.xlsx\u6587\u4ef6\ndata = pd.read_excel(&#39;your_file.xlsx&#39;)\n\n# \u5c06\u6570\u636e\u4fdd\u5b58\u4e3a.csv\u6587\u4ef6\ndata.to_csv(&#39;your_file.csv&#39;, index=False)\n<\/code><\/pre>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u53ef\u4ee5\u81ea\u5b9a\u4e49\u54ea\u4e9b\u53c2\u6570\uff1f<\/strong><br \/>\u5728\u4f7f\u7528<code>to_csv()<\/code>\u65b9\u6cd5\u65f6\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u591a\u4e2a\u53c2\u6570\u3002\u4f8b\u5982\uff0c<code>sep<\/code>\u53ef\u4ee5\u7528\u6765\u5b9a\u4e49\u5206\u9694\u7b26\uff0c<code>header<\/code>\u53ef\u4ee5\u63a7\u5236\u662f\u5426\u5199\u5165\u5217\u540d\uff0c<code>encoding<\/code>\u53ef\u4ee5\u8bbe\u7f6e\u6587\u4ef6\u7f16\u7801\u65b9\u5f0f\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-python\">data.to_csv(&#39;your_file.csv&#39;, sep=&#39;;&#39;, index=False, encoding=&#39;utf-8&#39;, header=True)\n<\/code><\/pre>\n<p><strong>\u5982\u679c\u6211\u7684.xlsx\u6587\u4ef6\u4e2d\u6709\u591a\u4e2a\u5de5\u4f5c\u8868\uff0c\u8be5\u5982\u4f55\u5904\u7406\uff1f<\/strong><br \/><code>pandas<\/code>\u7684<code>read_excel()<\/code>\u65b9\u6cd5\u5141\u8bb8\u60a8\u6307\u5b9a\u5de5\u4f5c\u8868\u540d\u79f0\u6216\u7d22\u5f15\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528<code>sheet_name<\/code>\u53c2\u6570\u6765\u9009\u62e9\u7279\u5b9a\u7684\u5de5\u4f5c\u8868\uff0c\u6216\u8005\u9009\u62e9\u6240\u6709\u5de5\u4f5c\u8868\u5e76\u5206\u522b\u8f6c\u6362\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\"># \u8bfb\u53d6\u7279\u5b9a\u5de5\u4f5c\u8868\ndata = pd.read_excel(&#39;your_file.xlsx&#39;, sheet_name=&#39;Sheet1&#39;)\n\n# \u6216\u8005\u8bfb\u53d6\u6240\u6709\u5de5\u4f5c\u8868\nall_sheets = pd.read_excel(&#39;your_file.xlsx&#39;, sheet_name=None)\nfor sheet_name, sheet_data in all_sheets.items():\n    sheet_data.to_csv(f&#39;{sheet_name}.csv&#39;, index=False)\n<\/code><\/pre>\n<p><strong>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\u53ef\u80fd\u4f1a\u9047\u5230\u54ea\u4e9b\u95ee\u9898\uff0c\u5982\u4f55\u89e3\u51b3\uff1f<\/strong><br \/>\u5728\u8f6c\u6362\u8fc7\u7a0b\u4e2d\uff0c\u5e38\u89c1\u7684\u95ee\u9898\u5305\u62ec\u6570\u636e\u4e22\u5931\u3001\u683c\u5f0f\u9519\u8bef\u6216\u7f16\u7801\u95ee\u9898\u3002\u5982\u679c\u9047\u5230\u6570\u636e\u4e22\u5931\uff0c\u786e\u4fdd\u60a8\u68c0\u67e5\u6e90\u6587\u4ef6\u662f\u5426\u5b58\u5728\u5408\u5e76\u5355\u5143\u683c\uff1b\u5bf9\u4e8e\u683c\u5f0f\u9519\u8bef\uff0c\u53ef\u80fd\u9700\u8981\u5728\u8f6c\u6362\u524d\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u3002\u7f16\u7801\u95ee\u9898\u53ef\u4ee5\u901a\u8fc7\u8bbe\u7f6e<code>encoding<\/code>\u53c2\u6570\u6765\u89e3\u51b3\uff0c\u4f8b\u5982\u4f7f\u7528<code>encoding=&#39;utf-8-sig&#39;<\/code>\u53ef\u4ee5\u5904\u7406\u5305\u542b\u975eASCII\u5b57\u7b26\u7684\u6587\u4ef6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u4f7f\u7528Python\u5c06xlsx\u8f6c\u6362\u6210csv\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528pandas\u3001openpyxl\u6216xlrd\u7b49\u5e93\u3002 \u5728 [&hellip;]","protected":false},"author":3,"featured_media":1129835,"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\/1129829"}],"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=1129829"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1129829\/revisions"}],"predecessor-version":[{"id":1129836,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1129829\/revisions\/1129836"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1129835"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1129829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1129829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1129829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}