mirror of https://github.com/sunface/rust-course
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
407 B
13 lines
407 B
3 years ago
|
// variables5.rs
|
||
3 years ago
|
// 让我能够编译!执行 `rustex hint variables5` 获取提示 :)
|
||
3 years ago
|
|
||
|
// I AM NOT DONE
|
||
|
|
||
3 years ago
|
/// 翻译: [mg-chao](https://github.com/mg-chao)
|
||
3 years ago
|
fn main() {
|
||
|
let number = "T-H-R-E-E"; // don't change this line
|
||
3 years ago
|
println!("Spell a Number : {}", number);// 译:"拼接的数字:{}"
|
||
3 years ago
|
number = 3;
|
||
3 years ago
|
println!("Number plus two is : {}", number + 2);// 译:"数字加上二是:{}"
|
||
3 years ago
|
}
|