标签:new mamicode alt span scores 图片 ash let str
严谨!
fn main() { use std::collections::HashMap; let mut scores = HashMap::new(); scores.insert(String::from("Blue"), 10); scores.insert(String::from("Yellow"), 50); for (key, value) in &scores { println!("{}: {}", key, value); } }
标签:new mamicode alt span scores 图片 ash let str
原文地址:https://www.cnblogs.com/aguncn/p/11405470.html