变量可变性常量 变量声明一个变量用let关键字 fn main() { println!("Hello, world!"); let mut x = 5; println!("{}", x); x = 6; println!("{}", x);} 可变性变量声明后需要加上 mut 关键字才可以改变, 否则不可变 常量 永远不可变 使用const关键字声明