62,621
社区成员
发帖
与我相关
我的任务
分享
public static void main(String args[])
{
try
{
URL tirc = new URL("http://acg.178.com/mh/p/play/5085.shtml");
Scanner scan = new Scanner(tirc.openStream());
System.out.println(tirc.getHost());
while (scan.hasNext())
{
System.out.println(scan.next().replace("\\/", "/"));
}
}
catch (IOException e)
{
System.out.println(e);
}
}
String str="s/\u53f2\u4e0a\u6700\u5f3a\u5f1f\u5b50\u517c\u4e00/Vol_01/001.JPG";
System.out.println(str);
s/史上最强弟子兼一/Vol_01/001.JPG
成功生成(总时间:0 秒)
str = java.net.URLDecoder.decode("%E6%B5%B7%E8%B4%BC%E78%E8B", "utf-8");