TA贡献1866条经验 获得超5个赞
(1)如果字符串格式为:String str="abc#def#hijkl#mn";string[] s = str.Split(new char[] { '#' });结果就是:s[0]="abc";s[1]="def";s[2]="hijkl";s[3]="mn";(2)如果是单纯的字符串截取就简单了,比如:String str="abcdefg";String strnew=str.Substring(3,3);结果是:strnew="def";
举报