import xlwt
Excel = xlwt.Workbook(encoding='utf-8', style_compression=0)
table = Excel.add_sheet('hello',cell_overwrite_ok=True)  #sheet名命名为hello

table.write(1,2,"hello")#第一行第二列写入hello(row,col,data)

Excel.save(r'world.xls') #Excel表保存为world.xls

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2021-06-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案