摘要: 一、String::from_utf8 fn main() { let bytes = vec![0x41, 0x42, 0x43]; let s = String::from_utf8(bytes).expect("Found invalid UTF-8"); println!("{}", s); 阅读全文
posted @ 2021-11-18 11:31 hziwei 阅读(2735) 评论(0) 推荐(0) 编辑