fn main() {
let location = String::from(
"http://www.xxxx.com/archives/2017/123.html",
);
let pos: Vec<&str> = location.split("/").collect();
println!("id: {}", pos[pos.len() - 1]);
}
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
txttool.com 说一段 esp56物联 查询128 IP查询