摘要:
``` fn main() { //let x = 5; let mut x = 5; //通过const定义常量名称要大写,并且值不可更改 const Y:i32=6; println!("Y is {}",Y); println!("The value of x is {}", x); x = 6; println!("The value of x is {}", x); //如果要覆盖上一个 阅读全文
posted @ 2019-12-01 01:04
公众号python学习开发
阅读(162)
评论(0)
推荐(0)
摘要:
``` use std::io; use rand::Rng; use std::cmp::Ordering; fn main() { println!("Guess the number!"); let secret_number = rand::thread_rng().gen_range(1,101); loop { println!("Please input your guess."); 阅读全文
posted @ 2019-12-01 00:48
公众号python学习开发
阅读(269)
评论(0)
推荐(0)

浙公网安备 33010602011771号