excel读取

Posted 你若精彩,蝴蝶自来

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了excel读取相关的知识,希望对你有一定的参考价值。

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])

 

以上是关于excel读取的主要内容,如果未能解决你的问题,请参考以下文章