📅  最后修改于: 2022-03-11 14:49:25.290000             🧑  作者: Mango
use std::io;
let mut input = String::new();
match io::stdin().read_line(&mut input) {
Ok(n) => {
println!("{} bytes read", n);
println!("{}", input);
}
Err(error) => println!("error: {}", error),
}Run