Rust 通过 match 关键字来提供模式匹配,用法和C 语言的的 switch 类似。 fn main() {. let number = 13;. // 试一试 ^ 将不同的值赋给 `number`. println!
確定! 回上一頁