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