# coding=utf-8
import xlwt
writebook = xlwt.Workbook() #打开excel
test= writebook.add_sheet('test') #添加一个名字叫test的sheet
test.write(0,1,'this is a test') #第0行第1列写入字符串'this is a test'
writebook.save('testdata.xls') #一定要保存为xls,后缀是xlsx的文件打不开