📜  rust 多维数组 - Rust 代码示例

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

代码示例1
let (a, b, c) = (4, 5, 6);
let mut arr = vec![vec![vec![0.0f64; a]; b]; c];
arr[1][2][3] = 1.0;
let x = arr[1][2][3];
println!("{}", x);