聚合报这样的错误
来源:3-4 实现个人助手功能清单发布
慕慕9759425
2019-06-12
http://v.juhe.cn/weather/index?cityname=深圳&key=9a3e1fa6cb79d69f1594af5cb219a469
{‘resultcode’: ‘112’, ‘reason’: ‘当前可请求的次数不足’, ‘result’: None, ‘error_code’: 10012}
Traceback (most recent call last):
File “/Users/wangbinli/xiaochengxu2/thirdparty/juhe.py”, line 30, in
data = weather(‘深圳’)
File “/Users/wangbinli/xiaochengxu2/thirdparty/juhe.py”, line 19, in weather
sk = result.get(‘sk’)
AttributeError: ‘NoneType’ object has no attribute ‘get’
写回答
1回答
-
咚咚呛
2019-06-12
要注册自己的key使用相关API哦,在git仓库的文档有详细说明。
00
相似问题