题解 | #字符转ASCII码#
字符转ASCII码
https://www.nowcoder.com/practice/93f4d05a02d9468db424ed4316bfc8fd
use std::io::{self, *}; fn main() { let mut str1 = String::new(); io::stdin().read_line(&mut str1).unwrap(); let mut str1 = str1.trim(); for i in str1.chars() { println!("{}",i as i32) } }