这给出了一个迭代器,你可以将它循环,或 collect() 到一个向量中。 for s in split { println!("{}", s) } let vec = split.collect::<Vec<&str>> ...
確定! 回上一頁