Rust中的字符串处理

mac2022-06-30  25

一路看过来,怕是我知道的所有语言当,处理最复杂吧。

当然,如果能正确处理,也是能理解最到位的。

这,就是我为什么要学Rust的原因。

暂无用武之地,但逻辑体系和知识点够复杂,才能应对更多事务~

 

fn main() { let s1 = String::from("tic"); let s2 = String::from("tac"); let s3 = String::from("toe"); let s = format!("{}-{}-{}", s1, s2, s3); println!("s value is: {}", s); }

转载于:https://www.cnblogs.com/aguncn/p/11405425.html

最新回复(0)