📜  读取 json 文件 python utf8 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:39.856000             🧑  作者: Mango

代码示例1
with open('keys.json', encoding='utf-8') as fh:
    data = json.load(fh)

print(data)
# from stackoverflow : https://stackoverflow.com/questions/46408051/python-json-load-set-encoding-to-utf-8