names = ['Ken' : 'Barclay', 'John' : 'Savage']
divisors = [4 : [2], 6 : [3, 2], 12 : [6, 4, 3, 2]]
println(names['Ken']) //通过key显示value
println(names.Ken)//通过key显示value
println(names['Jessie'])//通过key显示value,key不存在显示null
println(divisors[6])//通过key显示value
divisors[6] = [6, 3, 2, 7]//通过key改变value
println(divisors[6])
map = ['Ken' : 2745, 'John' : 2746, 'Sally' : 2742]
map.put('Bob', 2713)
println(map)
println(map.containsKey('Ken'))
println(map.get('David', 9999)) //返回David的value,如果没有David,返回9999
println(map.get('Billy'))
println(map.keySet())
println(map.size())
println(map['Ken'])