如下
from openpyxl import Workbookwb=Workbook()wb.create_sheet("log")sheet1=wb["log"]sheet1.cell(1,1).value="test"wb.save("log.xlsx")