rj = Client(host='localhost', port=6379, db=1, decode_responses=True)
with open('param_dict.json', 'rb') as file:
obj_test = json.load(file)
print(obj_test)
# Print
# {'ID': 1, 'Вес(кг.)': 17, 'Рост(см.)': 100, .....
rj.jsonset('user1', Path.rootPath(), obj_test)
print(rj.jsonget('user1'))
# Print
# {'ID': 1, 'Ð\x92еÑ\x81(кг.)': 17, 'Ð\xa0оÑ\x81Ñ\x82(Ñ\x81м.)':
当我在Redis基础中用原因模块设置字典时,俄语字母看起来是Ð\ x92ÐµÑ \ x81(кг。)
有问题吗?