From 67fc28735a98395f6946ed13ff7dcd093e35478e Mon Sep 17 00:00:00 2001 From: Administrator <admin@example.com> Date: 星期三, 03 七月 2024 10:47:56 +0800 Subject: [PATCH] 删除非必要的print --- log_module/log_export.py | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/log_module/log_export.py b/log_module/log_export.py index ef27b57..a6df913 100644 --- a/log_module/log_export.py +++ b/log_module/log_export.py @@ -53,7 +53,8 @@ while line: time_ = line.split(":")[-1] if int(time_) > 150: - print(line) + # print(line) + pass line = f.readline() @@ -100,7 +101,8 @@ for key in today_data: # news = sorted(today_data[key], key=lambda x: x["index"]) # today_data[key] = news - print(key, len(today_data[key]) - 1, today_data[key][-1]["index"]) + # print(key, len(today_data[key]) - 1, today_data[key][-1]["index"]) + pass except: pass return today_data @@ -210,9 +212,9 @@ if line.find("鐪熷疄涓嬪崟浣嶇疆") > 0: - print(line) + # print(line) str_ = line.split("锛�")[1].strip() - print(str_) + # print(str_) try: pos = int(eval(str_.split("-")[1].strip())[0]) except: -- Gitblit v1.8.0