计算时附加电缆产品信息

This commit is contained in:
WIN-20230613SRA\Administrator
2026-07-06 18:06:55 +08:00
parent 98f47be9ff
commit 7e2b80aa3a
6 changed files with 79 additions and 23 deletions
+13
View File
@@ -11,3 +11,16 @@ YSMODE = False
COREECTMODE = True
def read_config():
config = {}
path = "/home/admin/.config/cpy/config.json"
with open(path, "r") as f:
config = json.load(f)
return config
return None
def save_config(config):
path = "/home/admin/.config/cpy/config.json"
with open(path, "w", encoding='utf-8') as f:
json.dump(config, f, indent=4)