使用接口獲取天氣

public static String getWeather(String city) throws MalformedURLException, IOException { String cityName=URLEncoder.encode(city,"UTF-8");//城市名 String url="//這裏寫你調用的天氣接口,例如心知api,聚合api 有免費的天氣接口"; URL
相關文章
相關標籤/搜索