privateclassfunctestMap(){letnumbersArray=[1,3,5,7,9]varnewNumArray1=[Int]()// for循环方式foriteminnumbersArray{newNumArray1.append(item+1)}// 高阶函数Map接受闭包方式letnewNumArray2=numbersArray.map{$0+1}print("加1后数组1:\(newNumArray1)")print("加1后数组2:\(newNumArray2)")//...