解决方法

with open("cfg.json",'r',encoding='utf-8') as f:
    cfg=json.load(f)

2、

arr = json.loads(strs, encoding='utf-8')
#python3.9已移除encoding='utf-8'