如何打印数值变量

提问

Rust 如何打印数值变量

回答

需要将数值变量转为字符串

 let n=32;
 println!("{}", n);
posted @ 2024-06-11 14:39  东百牧码人  阅读(16)  评论(0)    收藏  举报