已有184人关注
错误提示
还有0人有此问题
发表在Python图书答疑 2020-01-19 《零基础学Python》
是否精华
版块置顶:

D:\python\python.exe C:/Users/Administrator/Desktop/shi_lian/demo.py

Traceback (most recent call last):

  File "C:/Users/Administrator/Desktop/shi_lian/demo.py", line 4, in <module>

    result = response.json()

  File "D:\python\lib\site-packages\requests\models.py", line 897, in json

    return complexjson.loads(self.text, **kwargs)

  File "D:\python\lib\json\__init__.py", line 357, in loads

    return _default_decoder.decode(s)

  File "D:\python\lib\json\decoder.py", line 337, in decode

    obj, end = self.raw_decode(s, idx=_w(s, 0).end())

  File "D:\python\lib\json\decoder.py", line 355, in raw_decode

    raise JSONDecodeError("Expecting value", s, err.value) from None

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)


Process finished with exit code 1


分享到:
手机同步功能介绍
友情提示:以下图书配套资源能够实现手机同步功能
明日微信公众号
明日之星 明日之星编程特训营
客服热线(每日9:00-17:00)
400 675 1066
mingrisoft@mingrisoft.com
吉林省明日科技有限公司Copyright ©2007-2022,mingrisoft.com, All Rights Reserved长春市北湖科技开发区盛北大街3333号长春北湖科技园项目一期A10号楼四、五层
吉ICP备10002740号-2吉公网安备22010202000132经营性网站备案信息 营业执照