合并2个多维数组并求和
本文介绍了合并2个多维数组并求和的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个存储 x 和 y 坐标的多维数组,我试图将它们合并到一个数组中,同时保留 x 值但将 y 值相加.
I have two multidimensional arrays which store x and y coordinates I am trying to merge together into a single array while preserving the x value but adding together the y values.
数组 1:
数组 2:
所以综合结果是:
任何帮助将不胜感激.
推荐答案
这篇关于合并2个多维数组并求和的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!