>>> import tushare as ts
>>> ts.realtime_boxoffice()
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
ts.realtime_boxoffice()
File "E:\Python\lib\site-packages\tushare\internet\boxoffice.py", line 51, in realtime_boxoffice
js = json.loads(lines.decode('utf-8') if ct.PY3 else lines)
File "E:\Python\lib\json\__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "E:\Python\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "E:\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)
>>>
謝謝
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/106390.html
上一篇:pygame 滑鼠事件獲取
下一篇:python讀取excel資料
