Skip to content

Commit

Permalink
v1.5.6_51
Browse files Browse the repository at this point in the history
+bss.py 增加了printe函数用于将日志输出到stderr(未进行适配)
  • Loading branch information
BailPlus committed Dec 5, 2022
1 parent 6c1b645 commit 164614a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bss.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python3
#coding:utf-8
#Copyright Bail 2021-2022
#bssenglish 白杉树背单词训练软件 v1.5.5_50
#bssenglish 白杉树背单词训练软件 v1.5.6_51
#2021.7.11-2022.12.5

'''
Expand Down Expand Up @@ -31,6 +31,12 @@ def loadplugins():
for i in os.listdir('.'):
pkgname = i.split('.')[0] #去掉后缀名
__import__(pkgname)
def printe(*args,**kw):
'''从stderr通道输出内容
与内置函数print用法相同'''
# 为了后续版本的libcli从stdout输出,故将日志输出到stderr通道
# 需要其他模块进行适配,将在后续版本完成
print(file=sys.stderr,*args,**kw)
def main():
init()
loadplugins()
Expand Down
2 changes: 2 additions & 0 deletions 更新日志.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
白杉树背单词训练软件 更新日志
2022.12.5:v1.5.6_51
+bss.py 增加了printe函数用于将日志输出到stderr(未进行适配)
2022.12.5:v1.5.5_50
+init.py 增加了文件夹存在时的输出提醒
+init.py 增加了创建文件前的存在性检测,修复了之前小概率删库的bug
Expand Down

0 comments on commit 164614a

Please sign in to comment.