//分组 8个为一组 List<List<string>> ArrayList = sArray.Select((x, i) => new { Index = i, Value = x }) .GroupBy(x => x.Index / 8) .Select(x => x.Select(v => v.Value).ToList()) .ToList();
2022-01-03 01:58:59
//分组 8个为一组 List<List<string>> ArrayList = sArray.Select((x, i) => new { Index = i, Value = x }) .GroupBy(x => x.Index / 8) .Select(x => x.Select(v => v.Value).ToList()) .ToList();