feat: 增加description.py,修复中文问题
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user