rust 通过 match 关键字来提供模式匹配,和C语言中的switch类似。 ... let binary = match boolean { false => 0, true => 1, }; println!
確定! 回上一頁