import pyexcel as ct
#先导入需要操作excel表格的模块
excel=ct.get_book_dict(file_name="D:\he.xlsx")
excel2=ct.get_book_dict(file_name="D:\eh.xlsx")
#获取两个表信息
vor=[]
wen=[]
excel.update(vor)
excel2.update(wen)
#合并两个表内容
for i in excel:
for j in excel2:
vor+=excel[i]
vor[:]+=excel2[j]
ct.save_as(array = vor[0:7], dest_file_name = "D:\wdl.xlsx")
#用循环遍历加入新的excelbiaoge

python合并多表或两表数据

python合并多表或两表数据

相关文章:

  • 2021-10-30
  • 2022-01-05
  • 2021-06-18
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 1970-01-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案