📅  最后修改于: 2022-03-11 14:49:25.759000             🧑  作者: Mango
fn main() {
let mut num = vec![10, 20, 30, 40, 50];
// remove [2] (30)
num.remove(2);
println!("num[0]: {}", num[0]);
println!("num[1]: {}", num[1]);
println!("num[2]: {}", num[2]);
println!("num[3]: {}", num[3]);
}