📅  最后修改于: 2022-03-11 14:48:21.886000             🧑  作者: Mango
public static IList> Split(IList source)
{
return source
.Select((x, i) => new { Index = i, Value = x })
.GroupBy(x => x.Index / 3)
.Select(x => x.Select(v => v.Value).ToList())
.ToList();
}