def read_log_file(file_path): lines = [] for file_path in args.input: with open(file_path, 'r') as f: for line in f: lines.append(line.strip()) return() 补全代码
时间: 2024-03-07 14:52:33 浏览: 153
读取log文件的信息
3星 · 编辑精心推荐
def read_log_file(file_path):
lines = []
for file_path in args.input:
with open(file_path, 'r') as f:
for line in f:
lines.append(line.strip())
return lines
阅读全文