make modules

This commit is contained in:
misyaguziya
2023-06-12 12:49:37 +09:00
parent f3d955e8fd
commit 63ed087986
7 changed files with 888 additions and 879 deletions

8
utils.py Normal file
View File

@@ -0,0 +1,8 @@
import json
def save_json(path, key, value):
with open(path, "r") as fp:
json_data = json.load(fp)
json_data[key] = value
with open(path, "w") as fp:
json.dump(json_data, fp, indent=4)