genxls_temp.py 285 B

12345678910
  1. # -*- coding: UTF-8 -*-
  2. import xlwt
  3. wb = xlwt.Workbook(encoding='utf-8')
  4. ws = wb.add_sheet("PhotoWorks")
  5. ws.write(0,0,u'作品ID')
  6. ws.write(0,1,u'参赛者用户名')
  7. ws.write(0,2,u'作品标题')
  8. ws.write(0,3,u'作品描述')
  9. ws.write(0,4,u'文件扩展名')
  10. wb.save("photoworks.xls")