在Rust 中,错误可分为两种: panic! 是Rust 提供的一个宏, ... Result<T, E> 的 expect 函数与 unwrap 类似,该函数返回 Ok(T) 包含的值。
確定! 回上一頁