摘要: //按“,”截取字符串 String id="123123,234534,453456"; String[] idArry = id.trim().split(","); for(String nid:idArry){System.out.println(nid); } 打印出的值为:123123 阅读全文
posted @ 2019-01-02 12:33 嘻嘻哈哈的人生 阅读(6528) 评论(0) 推荐(0) 编辑
摘要: String apiUrl = "https://api.seniverse.com/v3/weather/now.json?key=" + key + "&location=" + fullCityName + "&language=zh-Hans&unit=c"; URL url = new U 阅读全文
posted @ 2019-01-02 12:24 嘻嘻哈哈的人生 阅读(518) 评论(0) 推荐(0) 编辑