摘要:处理线程中打开文件,每次读取一行并记录当前读取位置,没有下一行让出一秒logfile = './logs/%s_%s.log' % (appName, time.strftime('%Y_%m_%d')) file = open(logfile, 'r', encoding='utf-8') whi 阅读全文
posted @ 2020-12-24 18:29 1553 阅读(140) 评论(0) 推荐(0) 编辑