截取字符串
public static String[] getstr(string strs, int len) { double i = strs.Length; string[] myarray = new string[int.Parse(Math.Ceiling(i / len).ToString())]; for (int j = 0; j < myarray.Length; j++) { len = len <= strs.Length ? len : strs.Length; myarray[j] = strs.Substring(0, len); strs = strs.Substring(len, strs.Length - len); } return myarray; }
原博主地址:https://blog.csdn.net/roguemaster/article/details/17756823
原文:https://www.cnblogs.com/lll-strive/p/12937276.html