let mut v = Vec::new(); v.push(String::from("hello")); v.push(String::from("world")); let s = v.remove(0); // 移除并获取所有权 println!("{}", s);