Groovy的list和map使用
List: 定义list:def list = [] list = [1,2,3,4,5] list操作: def list = [1,2,3,4,5] list[1] //Result: 2 list[-2] //Result: 4 list[1..3] //Result: [2, 3, 4] list[1..<3] //Result: [2, 3]...