Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有 2 个数组 X 和 Y,其中每个元素都是一个数字。我想制作另一个数组 SUM 以便SUM[i]=X[i]+Y[i].
SUM[i]=X[i]+Y[i]
我可以在不使用循环的情况下做到这一点吗?
C[i]='expr ${A[i]} + ${B[i]}'
会做这项工作