转换excel xlsx 为xls 或者转换 xls 为 xlsx aspose cells aspose-cells 22.8.0

import jpype
import asposecells
jpype.startJVM(r"E:\java\jdk-11.0.2\bin\server\jvm.dll")
from asposecells.api import Workbook

# Load Source JSON file
xls_path = r"C:\Users\H7113492\Desktop\details.xls"
workbook = Workbook(xls_path)

# Save file to xlsx format
workbook.save("sample_out.xlsx")

jpype.shutdownJVM()

aspose-cells 22.8.0

参考
https://docs.aspose.com/cells/python-java/convert-json-to-excel/

你可能感兴趣的:(excel,python,excel)