chore: load players.json via orjson

This commit is contained in:
mokurin000
2025-08-03 20:48:55 +08:00
parent c8867a68e6
commit 89d8177180

View File

@@ -1,9 +1,9 @@
import json import orjson as json
def main(): def main():
with open("players.json", "r", encoding="utf-8") as f: with open("players.json", "r", encoding="utf-8") as f:
d = json.load(f) d: list[dict[str, int | str]] = json.loads(f.read())
print(d[-1]["userId"]) print(d[-1]["userId"])