private string[] StrToStrA(string str, int len)
{
string[] tmp = new string[(str.Length + len - 1) / len];
for (int i = 0; i < tmp.Length; i++)
{
if (i == tmp.Length - 1)
{
// 最后一段长度可能小于len
tmp[i] = str.Substring(i * len, str.Length % len);
}
else
{
tmp[i] = str.Substring(i * len, len);
}
}
return tmp;
}