c# String 替换指定字符 string.Replace(“字符内容”, string.Empty); str= “abcdefg”; 例子: str.Replace(“a”, string.Empty); str= “bcdefg”;