您好,我有 2 个数组,我想将它们放在一个字符串中。我的数组可以取从 0 到 maxNum-1 的值。所以假设我有 myArray1[i] 和 myArray2[i] 我想创建一个这样的字符串:
string = "myArray1ID" + 1 + "=" + (myArray1[1])
+ "&" +"myArray2ID" + 1 + "=" + (myArray2[1])
+ "&" + "myArray1ID" + 2 + "=" + (myArray1[2])
+ "&" + "myArray2ID" + 2 + "=" + (myArray2[2])
+ ......
+ "myArray1ID" + (maxNum - 1) + "=" + (myArray[maxNum-1])
+ "&" "myArray2ID" + (maxNum - 1) + "=" + (myArray2[maxNum-1]);
是否可以?