assert list.jojn(',') =='one,two,three'. 查找是否存在. if(list.find(){it.name='wjc'}){. println '找到'. } Groovy用inject方法构造Map (标准的).
確定! 回上一頁