比如說定義一個數組 string[] s1={123,456,789};在定義一個數組 string s2=new string[9];怎樣把s1中的數存入s2,使s2[0]=1; s2[1]=2; s2[2]=3;s2[3]=4;……這樣的。。。。感謝幫忙
string[] s1={"123","456","789"};
string[] s2 = s1.SelectMany(x => x.ToCharArray()).Select(x => x.ToString()).ToArray();