2021-08-28 2021-08-28 1 2 3 4 5 6 7 from pathlib import Path import pandas as pd excels = [pd.read_excel(path,header=4) for path in Path('.').rglob('*.xls*')] #这里的4指的是表格头占4行,一般是占1行 print(excels) df = pd.concat(excels) df.to_excel('汇总.xlsx', index=False) 前一篇 原神游戏数据异常 处理方法合集(转自酷安) 后一篇 centos8 开机自动运行dhclient
说些什么吧!