Huge Rewrite!

This commit is contained in:
Remik1r3n
2025-02-02 03:17:13 +08:00
parent 3638de178d
commit 90d8b74c45
28 changed files with 1038 additions and 420 deletions

View File

@@ -1,7 +1,3 @@
# 感谢伟大的 Diving-Fish 让我被迫直面恐惧写这个逼玩意
import xml.dom.minidom as minidom
from pathlib import Path
import rapidjson as json
from typing import Dict, Union
@@ -12,7 +8,7 @@ MusicDBType = Dict[int, Dict[str, Union[int, str]]]
__all__ = ['musicDB']
# 读取并解析 JSON 文件
with open('musicDB.json', 'r', encoding='utf-8') as f:
with open('./Data/musicDB.json', 'r', encoding='utf-8') as f:
# 使用 json.load 直接从文件对象读取 JSON 数据
data = json.load(f)