日期:2014-05-19  浏览次数:20657 次

小弟问个超菜的问题 在线等
string   a,b;
a=   "the   sdgadf ";//我们不知道 "the   sdgadf "
怎么才能让
b= "the   sdgad "

------解决方案--------------------
不知道楼主到底要什么样的效果。
string a, b;
a = "the sdgadf ";//我们不知道 "the sdgadf "
b = a.Substring(0, a.Length - 1);
------解决方案--------------------
有Substring()