摘要: Trim移除字符串开始末尾的字符串 fn main() { let s = " Hello Rust! "; // trim移除字符串开始末尾的空格 // "Hello Rust!" println!("{}", s.trim()); // trim_start移除字符串开始的空格 // "Hell 阅读全文
posted @ 2022-11-05 23:14 BuzzWeek 阅读(641) 评论(0) 推荐(0) 编辑