.xls与.xlsx 文件转换
作者:互联网
.xls与.xlsx 文件转换
import win32com.client as win32
#文件路径
lc_path='1.xls'
old_path=lc_path
excel=win32.gencache.EnsureDispatch('Excel.Application')
wb=excel.Workbooks.Open(old_path)
new_path=old_path+'x'
wb.SaveAs(new_path)
wb.Close()
excel.Application.Quit()
标签:xlsx,old,wb,excel,Application,path,xls,转换 来源: https://www.cnblogs.com/duxiangjie/p/15726309.html