static void Test() { int[] arr = new int[] { 1, 2, 3, 4, 5, 6 }; string str = string.Join(",", arr); //数组转拼接字符串 int[] arr_new = Array.ConvertAll(str.Split(','), p => Convert.ToInt32(p)); //拼接字符串转数组 Console.WriteLine(str); }
标签:arr,数组,int,拼接,str,字符串 From: https://www.cnblogs.com/luludongxu/p/17340588.html