迭代:def names = ["sky","lily","tom"] names.forEach { println it.toUpperCase() } map = ['a': 1, 'b': 2] map.each {
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号