错误代码示范
with open("./garbage_classify/garbage_classify_rule.json", 'r') as load_f:
load_dict = json.load(load_f)
解决方法
with open("./garbage_classify/garbage_classify_rule.json", 'r',encoding='utf-8') as load_f:
load_dict = json.load(load_f)
加上 encoding=‘utf-8’ 就可以解决上面的问题