using System.Collections.Generic;//引用命名空间//Dictionary可以理解为散列集合 public class DictionaryTest { public static void Main() { //1.初始化 Dictionary<string, string> dicA = new Dictionary<string, string>(); //2.添加元素 key,value->学号,姓名 dicA.Add("A0
Python dictionary 字典 常用法 d = {} d.has_key(key_in) # if has the key of key_in d.keys() # keys list d.values() # values list d.get(key_in,[defualt]) # it will return 'NoneType' or [default] if with the secon