Functions-d 1.35__tar.gz → 1.37__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {functions_d-1.35 → functions_d-1.37}/Functions_d/Functions_d.py +4 -1
- {functions_d-1.35 → functions_d-1.37}/Functions_d.egg-info/PKG-INFO +1 -1
- {functions_d-1.35 → functions_d-1.37}/PKG-INFO +1 -1
- {functions_d-1.35 → functions_d-1.37}/setup.cfg +1 -1
- {functions_d-1.35 → functions_d-1.37}/Functions_d/__init__.py +0 -0
- {functions_d-1.35 → functions_d-1.37}/Functions_d.egg-info/SOURCES.txt +0 -0
- {functions_d-1.35 → functions_d-1.37}/Functions_d.egg-info/dependency_links.txt +0 -0
- {functions_d-1.35 → functions_d-1.37}/Functions_d.egg-info/requires.txt +0 -0
- {functions_d-1.35 → functions_d-1.37}/Functions_d.egg-info/top_level.txt +0 -0
- {functions_d-1.35 → functions_d-1.37}/README.md +0 -0
- {functions_d-1.35 → functions_d-1.37}/pyproject.toml +0 -0
- {functions_d-1.35 → functions_d-1.37}/setup.py +0 -0
|
@@ -55,6 +55,7 @@ class DataProcessingAndMessaging:
|
|
|
55
55
|
console_handler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s'))
|
|
56
56
|
self.logger.addHandler(console_handler)
|
|
57
57
|
|
|
58
|
+
self.logger.info("\n" * 1) # 1行空行,可自行修改数字
|
|
58
59
|
self.logger.info("初始化 DataProcessingAndMessaging 类")
|
|
59
60
|
|
|
60
61
|
# -------------------------- 2. 主类核心参数初始化 --------------------------
|
|
@@ -138,6 +139,8 @@ class DataProcessingAndMessaging:
|
|
|
138
139
|
# -------------------------- 脚本路径和文件名初始化 --------------------------
|
|
139
140
|
def Start_Get_filepath_and_filename(self):
|
|
140
141
|
self.start_time = time.time()
|
|
142
|
+
# ========== 新增:运行开始时追加10行空行分隔 ==========
|
|
143
|
+
# self.logger.info('\n' * 5)
|
|
141
144
|
caller_frame = inspect.stack()[1]
|
|
142
145
|
self.current_script_name = caller_frame.filename
|
|
143
146
|
self.log_filename = os.path.splitext(self.current_script_name)[0] + ".log"
|
|
@@ -156,7 +159,7 @@ class DataProcessingAndMessaging:
|
|
|
156
159
|
elapsed_time = round(end_time - self.start_time, 0)
|
|
157
160
|
print(f"运行时间:{elapsed_time} 秒")
|
|
158
161
|
self.logger.info(f"运行时间:{elapsed_time} 秒")
|
|
159
|
-
self.logger.info('\n' *
|
|
162
|
+
# self.logger.info('\n' * 2)
|
|
160
163
|
|
|
161
164
|
# -------------------------- 企业微信消息发送 --------------------------
|
|
162
165
|
# 仅展示修改后的 uxin_wx 方法,其余代码不变
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|