python_scripts
python_scripts copied to clipboard
新浪微博API返回的不是JSON
运行 heart.py
,response.json()[0]
报错:
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded
新浪微博API返回的是html,并不是json格式,因此报错