一.操作excel import xlwt book = xlwt.Workbook() #新建一个excel sheet = book.add_sheet('sheet1') #添加一个sheet页 # sheet.write(0,0,'姓名') # sheet.write(0,1,'性别') # sheet.write(0,2,'年龄') # book.save('case.xls') #微软的office不能用xlsx结尾的,wps随意 stus = [ ['姓名','年龄','性别','…