android 几个常常用到的字符串的截取

几个常常用到的字符串的截取 string str="123abc456"; int i=3; 1 取字符串的前i个字符    str=str.Substring(0,i); // or  str=str.Remove(i,str.Length-i);  2 去掉字符串的前i个字符:    str=str.Remove(0,i);  // or str=str.Substring(i);  3 从右
相关文章
相关标签/搜索