Rust 使用 match 关键字来进行模式匹配,有点像C 语言中的switch。 ... fn main() { let boolean = true; // match 是一个表达式,也可以返回值 let ...
確定! 回上一頁