![[Python] xls를 xlsx로 변환하는법, xlsx를 xls로 변환하는법 포스팅 썸네일 이미지](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdna%2FPu3SA%2FbtqDmnR0XC7%2FAAAAAAAAAAAAAAAAAAAAAMTgtNG51zpyEa5YBvlehHV46pGFz-fQpU8c0fQB9NqH%2Fimg.jpg%3Fcredential%3DyqXZFxpELC7KVnFOS48ylbz2pIh7yKj8%26expires%3D1753973999%26allow_ip%3D%26allow_referer%3D%26signature%3DFtaPTD8nK2p0e4ZDXslj7GwAm2I%253D)
Python
[Python] xls를 xlsx로 변환하는법, xlsx를 xls로 변환하는법
xls를 xlsx로 변환하는법 # xls to xlsx import win32com.client as win32 fname = "11번가.xls" excel = win32.gencache.EnsureDispatch('Excel.Application') wb = excel.Workbooks.Open(fname) wb.SaveAs(fname+"x", FileFormat = 51) #FileFormat = 51 is for .xlsx extension wb.Close() #FileFormat = 56 is for .xls extension excel.Application.Quit() xlsx를 xls로 변환하는법 # xlsx to xls from win32com.client import Dispatch xl ..