1 import sys 2 import time 3 from datetime import datetime 4 import _thread 5 import multiprocessing as mp 6 import time 7 from UnzipLogFile import UnzipLogFile 8 from Find_Excel_From_Dir import Search_Excel_From_Dir 9 ''' 10 from CheckMRSLogHandler import CheckMRSLogHandler 11 from mrs_vgw_handler import MRSVGWHandler 12 from mrs_rec_man_handler import MrsRecManHandler 13 ''' 14 15 # 格式化打印启动时间 16 start_time = datetime.now() 17 print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())) 18 ''' 19 runUnzip = UnzipLogFile("D:广东应急厅巡检日志") 20 runUnzip.Run() 21 ''' 22 Search_EXCEL = Search_Excel_From_Dir() 23 Search_EXCEL.Run() 24 25 26 ''' 27 mrs_vgw_run = MRSVGWHandler("d:日志巡检存放路径",days) 28 P_mrs_vgw = mp.Process(mrs_vgw_run.run()) 29 P_mrs_vgw.start() 30 31 32 mrs_rec_man_run = MrsRecManHandler("d:日志巡检存放路径",days) 33 P_mrs_rec_man = mp.Process(mrs_rec_man_run.run()) 34 P_mrs_rec_man.start() 35 36 P_mrs_vgw.join() 37 P_mrs_rec_man.join() 38 39 runCheckMRS = CheckMRSLogHandler("d:日志巡检存放路径",days) 40 runCheckMRS.run() 41 ''' 42 43 # 格式化打印结束时间 44 print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())) 45 end_time = datetime.now() 46 print("一共花费%s秒" % (end_time - start_time).seconds)