获取天气api
?
http://wthrcdn.etouch.cn/WeatherApi?citykey=101010100
通過(guò)城市id獲得天氣數(shù)據(jù),xml文件數(shù)據(jù),
當(dāng)錯(cuò)誤時(shí)會(huì)有<error>節(jié)點(diǎn)
http://wthrcdn.etouch.cn/WeatherApi?city=北京
通過(guò)城市名字獲得天氣數(shù)據(jù),xml文件數(shù)據(jù)
?
轉(zhuǎn)載于:https://www.cnblogs.com/GoCircle/p/9040253.html
總結(jié)
- 上一篇: 正则表达式的简单理解
- 下一篇: [poj 2001] Shortest