2.0.0全新版本,更好的代码组织形式

This commit is contained in:
2024-03-04 00:04:05 +08:00
parent 3831c41b9a
commit 95c0ff1b47
23 changed files with 815 additions and 414 deletions

View File

@@ -115,3 +115,11 @@ class ZeroSpeedError(ZeroDivisionError):
def __init__(self, *args):
"""以0作为播放速度的错误"""
super().__init__("播放速度为0", *args)
class IllegalMinimumVolumeError(ValueError):
"""最小播放音量有误的错误"""
def __init__(self, *args):
"""最小播放音量错误"""
super().__init__("最小播放音量超出范围", *args)