Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //这是zhangly输出的第一个rust
- use ferris_says::say; // from the previous step use std::io::{stdout, BufWriter};
- fn main() {
- let stdout = stdout();
- let out = b"Hello fellow Rustaceans!";
- let width = 24;
- let mut writer = BufWriter::new(stdout.lock());
- say(out, width, &mut writer).unwrap();
- println!("中国Hello, world!");
- let x=120;
- let _y=0;
- let s="中国人abc";
- println!("x{},y{}",x,s);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement