import xlwt
workbook=xlwt.Workbook()#创建工作簿
sheet=workbook.add_sheet("1")#创建工作表
sheet.write(0,0,"foobar")#写入
workbook.save("just for test.xls")#保存
转载于:https://www.cnblogs.com/abyssce/p/7218348.html
import xlwt
workbook=xlwt.Workbook()#创建工作簿
sheet=workbook.add_sheet("1")#创建工作表
sheet.write(0,0,"foobar")#写入
workbook.save("just for test.xls")#保存
转载于:https://www.cnblogs.com/abyssce/p/7218348.html