更高效的算法管理与兼容性和代码格式更新,详见样例代码;同时新增实验算法,在其中尝试下次更新的内容

This commit is contained in:
2023-07-01 19:11:10 +08:00
parent 36f8db722b
commit f73c1be944
25 changed files with 964 additions and 820 deletions

View File

@@ -17,8 +17,6 @@ Terms & Conditions: License.md in the root directory
# 若需转载或借鉴 许可声明请查看仓库目录下的 License.md
class MSCTBaseException(Exception):
"""音·创库版本的所有错误均继承于此"""
@@ -27,7 +25,7 @@ class MSCTBaseException(Exception):
super().__init__(*args)
def miao(
self,
self,
):
for i in self.args:
print(i + "喵!")
@@ -52,6 +50,14 @@ class MidiDestroyedError(MSCTBaseException):
super().__init__("MIDI文件损坏无法读取MIDI文件", *args)
class MidiUnboundError(MSCTBaseException):
"""未定义Midi对象"""
def __init__(self, *args):
"""未绑定Midi对象"""
super().__init__("未定义MidiFile对象你甚至没有对象就想要生孩子", *args)
class CommandFormatError(RuntimeError):
"""指令格式与目标格式不匹配而引起的错误"""