行列转换:用倒置矩阵的方式获取引用require'matrix'arr=[["a1","a2","a3","a4"],["b1","b2","b3","b4"],["c1","c2","c3","c4"]]change_arr=Matrix.columns(ww)change_aee.to_ap#=>[["a1","b2","c3"],["a2","b2","c2"],["a3","b2","c3"],["a4","b4","c4"]]ruby矩阵用法参考http://www.kuqin...
查看全文