Rust 中的布尔类型使用 bool 表示,可以通过as操作将bool转为数字0和1,但是不支持从数字转为bool:. fn main() { let _t = true; // 显式指定类型注解 let _f: bool ...
確定! 回上一頁