新浪天气预报 API http://php.weather.sina.com.cn/xml.php?city= 武汉&password= DJOYnieT8234jlsK&day=0 其中, city 后的城市可用 java.net.URLEncoder. encode (“ 武汉 ”,” gb2312”); 也可以直接写 ” 武汉