111,120
社区成员
发帖
与我相关
我的任务
分享string test = "a:b:(k:j;k)jile";
int x = test.LastIndexOf("(");
int y=test.LastIndexOf(")");
string str = test.Replace(test.Substring(x, y-x+1), "");
Console.WriteLine(str);