标签:app index debug array end [] lan col lse
func ArrayDivision(arr1 []float64,arr2 []float64) (arr3 []float64) { //两数组对应元素相除 for p:=0;p< len(arr1);p++ { arr3 = append(arr3, 0) } if len(arr1)!= len(arr2) { beego.Debug("数组相除时,两数组长度不一致!") }else { for index,v1 := range arr1{ arr3[index] = v1/arr2[index] } } return arr3 }
标签:app index debug array end [] lan col lse
原文地址:https://www.cnblogs.com/zheng123/p/9295656.html