v03 update 05
This commit is contained in:
parent
e793b62c29
commit
3cd3186514
|
@ -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() # 结束程序
|
||||
|
||||
|
|
Loading…
Reference in New Issue