标签:
import xlwt import xlrd from xlutils.copy import copy from 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])
标签:
原文地址:http://www.cnblogs.com/caicaihong/p/5923597.html