let foo = vec![1, 35, 64, 36, 26]; for (i, item) in foo.iter().enumerate() { println!("The {}th item is {}", i+1, item); }.
確定! 回上一頁