📜  rust 如何访问数组的元素 - Rust 代码示例

📅  最后修改于: 2022-03-11 14:49:25.504000             🧑  作者: Mango

代码示例1
fn main() {
    let a = [1, 2, 3, 4, 5];

    let first = a[0];
    let second = a[1];
}