import os
import xlrd
from openpyxl import load_workbook
import time
def writeappend_logfile(filename, content):
file = open(filename, 'a') #以追加方式打开日志文件
time_now = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) # 系统时间格式化
file.writelines(time_now+':'+content+'\n') # 写入内容
file.close()
# ori是xlsx, tar是xls
def read_check_excel(ori_path, tar_path):
ori_list = [] # 标准表 读取xls
tar_list = [] # 目标表
success = 0 # 正确的
fail = 0 # 错误的
count = 0 # 一共检测了多少
star_time = time.strftime("%Y-%m-%d %H:%M:%S",