requests url = response = requests.get(url) result = response.json() result = result[][] i result: (i)
F:\Python\Python37\python.exe F:/Python/Check_Tickts/demo.py
Traceback (most recent call last):
File "F:/Python/Check_Tickts/demo.py", line 6, in <module>
result = response.json() # 解析网站返回的json信息
File "F:\Python\Python37\lib\site-packages\requests\models.py", line 898, in json
return complexjson.loads(self.text, **kwargs)
File "F:\Python\Python37\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "F:\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "F:\Python\Python37\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