📅  最后修改于: 2022-03-11 14:48:56.810000             🧑  作者: Mango
static IEnumerable Split(string str, int chunkSize)
{
return Enumerable.Range(0, str.Length / chunkSize)
.Select(i => str.Substring(i * chunkSize, chunkSize));
}