import xlwt
book=xlwt.Workbook()#新建一个Excel
sheet=book.add_sheet('sheel1')#加sheet页
sheet.write(0,0,'姓名')
sheet.write(0,1,'年龄')
sheet.write(0,2,'性别')
book.save('stu.xls')#结尾一定要用.xls
写Excel
猜你喜欢
转载自www.cnblogs.com/irisx/p/8907774.html
今日推荐
周排行