//定义方式一var array1 = [[Int]]()//定义方式二var array2 = Array<Array<Int>>()array1 = [ [13,1,4], [5,1,7,6]]array2 = array1// 一维数组的定义var v = [Int]()v = [4,5,7,8]array2.append(v)println(array1)println(array2)//数组的遍历for var i=0; i<array1.count; i++ { for var j=0; j<array1[i].count; j++ { println(array1[i][j]) }}