xls转xlsx
文章平均质量分 76
jidawanghao
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python成功实现xls转xlsx,并批量迁移
""" 用python批量获取某路径文件夹及子文件夹下的指定类型文件excel,并按指定路径进行存储 """ import os import os import win32com.client as win32 import shutil file_excel = [] path = os.getcwd() path_listdir = os.listdir(path) for s in path_listdir: path_excel = os.path.join(path, s) .原创 2021-01-12 14:04:48 · 324 阅读 · 0 评论 -
python xls 批量转换为xlsx
import os import win32com.client as win32 import easygui as eg def save_as_xlsx(fname): excel = win32.DispatchEx('Excel.Application') wb = excel.Workbooks.Open(fname) wb.SaveAs(fname + "x", FileFormat=51) # FileFormat =...原创 2021-01-12 13:51:21 · 708 阅读 · 0 评论
分享