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
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
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。