接下来就是遍历指定路径下的excel,根据业务给的数据规则进行整合,整合之后生成一个目标excel,一份是正确的数据,还一份是异常数据。...= 'utf-8')
# 创建一个worksheet
worksheet = workbook.add_sheet('Worksheet1')
# 写入excel
# 参数对应 行, 列, 值
worksheet.write...worksheet.col(0).width = 3333
# 输入日期
style = xlwt.XFStyle()
style.num_format_str = 'M/D/YY' # Other...(4, 0, datetime.datetime.now(), style)
#添加公式
worksheet.write(5, 0, 5) # Outputs 5
worksheet.write(5,...(A5,B5)'))
#添加超链接
worksheet.write(7, 0, xlwt.Formula('HYPERLINK("http://www.google.com";"Google")')