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.
@@ -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' * 10)
162
+ # self.logger.info('\n' * 2)
160
163
 
161
164
  # -------------------------- 企业微信消息发送 --------------------------
162
165
  # 仅展示修改后的 uxin_wx 方法,其余代码不变
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Functions_d
3
- Version: 1.35
3
+ Version: 1.37
4
4
  Summary: 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
5
5
  Author: DongYang
6
6
  Author-email: 649898871@qq.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Functions_d
3
- Version: 1.35
3
+ Version: 1.37
4
4
  Summary: 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
5
5
  Author: DongYang
6
6
  Author-email: 649898871@qq.com
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = Functions_d
3
- version = 1.35
3
+ version = 1.37
4
4
  author = DongYang
5
5
  author_email = 649898871@qq.com
6
6
  description = 包含数据处理、Hive交互、企业微信消息发送、Excel操作等功能的工具类库
File without changes
File without changes
File without changes