一、从excel里读取文件
import xlrd
chart = xlrd.open_workbook("需求整理表.xlsx")
sheet1 = chart.sheet_by_index(0)
sheet2 = chart.sheet_by_name("汇总")
print(sheet1.nrows)
print(sheet1.row_values(0))
print(sheet1.ncols)
print(sheet1.col_values(1))
print(sheet1.cell_value(0,1))
print(sheet1.row_types(2))
二、写入excel
import xlwt
from PIL import Image
titlestytle = xlwt.XFStyle()
titlefont = xlwt.Font()
titlefont.name = '宋体'
titlefont.bold = True
titlefont.height = 11*20
titlefont.colour_index=0x08
titlestytle.font = titlefont
cellailgn = xlwt.Alignment()
cellailgn.horz =