TimeWeather 0.1.0
安装方法
(python -m) pip install pyweather
使用方法
from pyweather import *
addr=LocateMe_China()
loc=QWFreeAPI1.locate(addr)
print(QWFreeAPI1.weather(loc))
函数
parse_int(s) -> int
LocateMe_China() -> str
LocateMe() -> str
LocateMe_en() -> str
类
PointWeather(time=None,temp=None,feelslike=None,wea=None,weaicon=None,winddir=None,winddeg=None,windscale=None,windspeed=None,humidity=None,vis=None,aqi=None)
get_icon() -> bytes
add(pw) -> None
QWeatherAPI(key)
locate(loc) -> str
weather(cid) -> PointWeather
TianqiAPI(appid,appsecret)
weather(cid=None,city=None,ip=None) -> PointWeather
SeniverseAPI(key)
weather(loc) -> PointWeather