更新文案

This commit is contained in:
2022-10-05 01:12:37 +08:00
parent 0a9c70f97c
commit b73a041883
2 changed files with 27 additions and 2 deletions

View File

@ -52,7 +52,7 @@ def log(info:str = '',level : str = 'INFO', isPrinted:bool = True):
'''将信息连同当前时间载入日志
:param info : str
日志信息
:param level : str['INFO','WARRING','ERROR','CRASH']
:param level : str['INFO','WARN','ERROR','CRASH']
或 int[ 1, 2, 3, 4 ]
信息等级
:param isPrinted : bool
@ -62,7 +62,7 @@ def log(info:str = '',level : str = 'INFO', isPrinted:bool = True):
表示是否完成任务'''
if type(level) == type(1):
level = ['INFO','WARRING','ERROR','CRASH'][level-1]
level = ['INFO','WARN','ERROR','CRASH'][level-1]
try: