list = [1,2,3,4] list.remove(list.indexOf(2)) assert list == [1,3,4] def list = [1, 2, 3, 4, 5] list.removeAll{ it == 2} println list ...
確定! 回上一頁