Python 获取文件夹里所有 log 的起止时间戳
摘要:
import sys, os def get_timestamp(file_name): cnt = 0; with open(file_name,"r") as f: for line in f.readlines(): line = line.strip() #print (line) if(c 阅读全文
posted @ 2020-12-03 13:22 liujx2019 阅读(558) 评论(0) 推荐(0) 编辑