Browse Source

hash map

pull/3/head
jingxun 3 years ago
parent
commit
9cf4220c72
  1. 19
      day06/hash_day06/src/main.rs

19
day06/hash_day06/src/main.rs

@ -0,0 +1,19 @@
/*
** encoding: utf-8
** @author: Jinguxn
** @contact: chenjin.qian@xquant.com
jingxun@lynchow.com
** @file: main.py
** @create-time: 2021-11-25 10:29
** @last-modified: 2021-11-25 10:29
** @description: Input here.
*/
use std::collections::HashMap;
fn main() {
let mut scores = HashMap::new();
scores.insert(String::from("jingxun"), 90);
scores.insert(String::from("dschow"), 90);
println!("{:?}", &scores);
}
Loading…
Cancel
Save