//函数3:在指定位置添加一个物体, V<>B func setObject(row:Int,col:Int,objectID: String){ if row>=rows co1>=cols { return } group[row*cols+col] = objectID }