c#怎么删除string中的数据

2025-04-05 03:00:09
推荐回答(1个)
回答(1):

string str = "百度知道问答";
str = str.Replace("知道", ""); //str=百度问答

Replace函数用来替换字符串