groovy之List声明 声明Listdef myList = [1,2,3]assert myList.size() == 3assert myList.contains(2)assert myList instanceof ArrayListdef emptyList = []assert emptyList.size() == 0def longList = (1..1000).to... groovy 2023-09-27 39 点赞 0 评论 59 浏览