feat: 增加description.py,修复中文问题

This commit is contained in:
2026-02-08 20:55:19 +08:00
parent 8455dc7924
commit 6b7af1301f
9 changed files with 38 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
'''
读取 description.json 的内容
'''
import json
def readIndex() -> dict:
with open("resources/description.json", "r", encoding="utf8") as f:
text = f.read()
result = json.loads(text)
return result