🌈 搜索
📅  最后修改于: 2022-03-11 15:00:51.094000             🧑  作者: Mango
const RADIX: u32 = 10; let x = "134"; println!("{}", x.chars().map(|c| c.to_digit(RADIX).unwrap()).sum::());