This commit is contained in:
Your Name
2025-02-03 02:40:26 +08:00
parent d194556eee
commit 6daf529b2f
2 changed files with 11 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ MusicDBType = Dict[int, Dict[str, Union[int, str]]]
__all__ = ['musicDB']
# 读取并解析 JSON 文件
with open('./Data/musicDB.json', 'r', encoding='utf-8') as f:
with open('./maimaiDX-Api/Data/musicDB.json', 'r', encoding='utf-8') as f:
# 使用 json.load 直接从文件对象读取 JSON 数据
data = json.load(f)