示例代码: with open(base_path + "\\config\\user.json",encoding='utf-8') as f: data = json.load(f) print(data) 效果: