import json
test_dict = {'bigberg': [7600, {Ƈ老满': [['iPhone', 6300], ['Bike', 800], ['shirt', 300]]}]
json_str = json.mps(test_dict)
print(json_str)
new_dict = json.loads(json_str)
print(new_dict)
with open("../config/record.json", "w") as f:
json.mp(new_dict, f)
print("数据已写入文件...")
with open("../config/record.json", 'r') as load_f:
load_dict = json.load(load_f)
load_dict['smallberg'] = [8200, {Ƈ': [['Python', 81], ['shirt', 300]]}]
print(load_dict)