首页 > 代码库 > excel读取

excel读取

import xlwtimport xlrdfrom xlutils.copy import copyfrom datetime import datetime#style0=xlwt.easyxf("style0 = xlwt.easyxf(‘font: name Times New Roman, color-index red, bold on‘,num_format_str=‘#,##0.00‘")style1 = xlwt.easyxf(num_format_str=D-MMM-YY)list_name=[1,2,3,4,5,6]list_img=[a,b,c,d,f,g]wb = xlwt.Workbook()ws = wb.add_sheet(名字和图片地址)for each in range(len(list_name)):    ws.write(each,0,list_name[each])    ws.write(each,1,list_img[each])

 

excel读取