# -*- coding: utf-8 -*- import xlwt def write_excel(): f = xlwt.Workbook() fenlei = ['一类','二类','三类','四类'] data_list = [[1,2,3],[11,22,33,44],[111,222,333,444,555],[1111,2222,3333,4444,5555,6666]] # cell_overwrite_ok=True是为了可以让用户可以重复写内容用的 sheet1 = f.a…