在Rust中字符串是个复杂的概念,String和&str的性质不一样,&str可以使用to_string()转换 let str: String = "琼台博客".to_string();.
確定! 回上一頁