v03 update 05

This commit is contained in:
13339479676 2022-01-16 07:23:14 +08:00
parent e793b62c29
commit 3cd3186514
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ def is_logSuffix(logName):
suffixList = ['log', 'txt', 'data'] # 日志后缀列表
log_suffix = logName.split('.')[-1] # 获取日志后缀
if log_suffix not in suffixList:
# 判断日志是否符合格式
print(f'日志格式不正确!程序结束!')
sys.exit() # 结束程序