【发布时间】:2023-03-24 21:08:01
【问题描述】:
我想在python中打开一个json文件,但出现错误:
UnicodeDecodeError:“ascii”编解码器无法解码位置 64864 中的字节 0xe2:序数不在范围内 (128)
我的代码很简单:
# -*- coding: utf-8 -*-
import json
with open('birdw3l2.json') as data_file:
data = json.load(data_file)
print(data)
有人可以帮助我吗?谢谢!
【问题讨论】: