还可以将字符串“true” 和“false” 转换为bool: use std::str::FromStr; fn main() { assert_eq!(FromStr::from_str("true"), Ok(true)); assert_eq!(
確定! 回上一頁