Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
x min x s
调整为xx:xx
。这样做是因为xx:xx
更符合用户阅读习惯(视频播放器均采用此时间格式);其次xx:xx
的字符串长度是固定的,能使回显更加整齐、视觉跳动性更少。exceptions.BaseException
基类的LoginError
错误,而当其他意外错误发生时,Logger 无法对其进行记录,而是直接抛出异常导致终止程序。经过改动后,移除了自定义exceptions.BaseException
基类(避免和内置builtins.BaseException
混淆),并且if __name__ == '__main__'
代码块内发生的所有继承于内置builtins.BaseException
基类的异常都能够通过 Logger 打印错误信息和堆栈跟踪。1
,没有对下限进行检测,经过改动后,输入限制规范于[1.0, 2.0]
。