Rust Examples Ex2023-12-20 约 44 字 预计阅读 1 分钟文章目录formatbinary, hexformat 1 2 3 4 5 6 7 8 9 10 println!("hello"); println!("{:?}", 1.0/2.0); let a: i32 = 3; let b:u32 = 3; let i: i32 = 2; println!("{:?}, {}", a.pow(b), a.pow(i as u32)); hello binary, hex1 println!("ob{:b}, ox{:X}", 16, 15); ob10000, oxF 文章作者 上次更新 2024-01-05 (b2a2a64)