会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
hziwei
博客园
首页
新随笔
联系
订阅
管理
2021年11月18日
rust字节数组转换为string
摘要: 一、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)
编辑
公告