from xlwt import Workbook if __name__ == "__main__": workbook = Workbook() sheet = workbook.add_sheet('Map') # 第一行,第一列 sheet.write(0, 0, 'Yoshiyan') workbook.save('map.xls')
work_sheet.write(r,0,99999,easyxf('pattern: pattern solid, fore_colour red;'))