摘要: String类 1. push_str 2. push 3. as_bytes 4. chars 5. bytes 6. slice 7. as_str 定义字符串 // 不可变 let s = String::from("hello"); // 可变 let mut s = String::fro 阅读全文
posted @ 2022-01-06 22:08 翠微 阅读(74) 评论(0) 推荐(0) 编辑