i8
u8
i16
u16
i32
u32
i64
u64
i128
u128
isize
usize
f32 和 f64
f32
f64
bool
字符类型
char
let c = 'z';
#![allow(unused)] fn main() { let tup: (i32, f64, u8) = (500, 6.4, 1); let tup = (500, 6.4, 1); let (x, y, z) = tup; // 读取 let five_hundred = x.0 }