This commit is contained in:
2025-03-20 04:10:31 +08:00
parent e766e8fb2c
commit 2b753c38b6
5 changed files with 25 additions and 673 deletions

View File

@@ -86,6 +86,13 @@ def run(function_name, *args, **kwargs):
pass
return return_data
# 使用该函数实现 try except 结构
def try_except(function_name, *args, **kwargs):
try:
return function_name(*args, **kwargs)
except:
pass
# 获取运行的日期和时间并写入文件
def statistics_with_day_and_time(content='', filename='time_logging', file_format='.txt'):
import datetime