110,535
社区成员
发帖
与我相关
我的任务
分享
string s = "2008-2009-2";
string s1 = s.Substring(0, s.LastIndexOf("-"));
string s2 = s.Substring(s.LastIndexOf("-")+1, s1.Length - s.LastIndexOf("-")+1);
MessageBox.Show(s1);
MessageBox.Show(s2);