2026-01-02 21:47:28 +08:00
|
|
|
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):
|
2026-01-03 17:19:39 +08:00
|
|
|
return readCardList().get(id, f"No Card {id}")
|