- 帖子
- 3
- 精华
- 0
- 积分
- 13
- 阅读权限
- 10
- 注册时间
- 2018-8-1
- 最后登录
- 2018-8-3
|
crossin先生 发表于 2018-8-2 14:31
把try去掉看报什么错
加了异常处理谁也看不出来。开发调试完了再加上
去掉try之后报了这段,请问是什么意思?
Traceback (most recent call last):
File "E:\Python learning\22.py", line 12, in <module>
data=json.loads(content)
File "E:\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "E:\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "E:\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
|
|