修复部分bug,增加部分bug

This commit is contained in:
2022-01-31 13:53:38 +08:00
parent bcaeb129a5
commit 2fcfdca0a0
33 changed files with 558 additions and 274 deletions

View File

@ -44,7 +44,7 @@ StrStartTime = str(datetime.datetime.now()).replace(':', '_')[:-7]
"""字符串型的程序开始时间"""
def log(info: str = '', isPrinted: bool = False, isLoggerLibRecord: bool = True, isWrite: bool = False):
def log(info: str = '', isWrite: bool = True, isPrinted: bool = False, isLoggerLibRecord: bool = True):
"""
info: 信息
isPrinted: 是否print仅限金羿logpython官方的logging照常输出
@ -52,6 +52,9 @@ def log(info: str = '', isPrinted: bool = False, isLoggerLibRecord: bool = True,
isWrite: 是否write仅限金羿logpython官方的logging照常输出
"""
"""将信息连同当前时间载入日志"""
# 致后来的开发者请让金羿的log存在吧不然他自己都看不懂你们写了什么了
# 我指的是程序内部
# ——金羿
if not os.path.exists('./log/'):
os.makedirs('./log/')
if isWrite: