dev: 进一步细化了项目结构
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
def readCardList() -> dict:
|
||||
with open("cards/list.json", "r", encoding="utf8") as f:
|
||||
text = f.read()
|
||||
result = json.loads(text)
|
||||
|
||||
return result
|
||||
|
||||
def readCard(id: str):
|
||||
return readCardList().get(id, -1)
|
||||
Reference in New Issue
Block a user