cell_overwrite_ok=True) # 向创建的工作表中写入数据 wb1.get_sheet(f"sheet{i}").writ...
需安装 xlrd-0.9.2 和 xlutils-1.7.1 这两个模块from xlwt import Workbook, Formulaimport xlrdbook = Workbook()sheet1 = book.add_sheet('Sheet 1')sheet1.write(0,0,10)sheet1.write(0,1,20)sheet1.write(1,0,Formula('A1/B1'))sheet2 = book.add_sheet('Sheet 2')row = sh...
解决了吗