C# 替换string字符串指定位置的字符
源码实例如下:
string str = "faewfaega,";int length = str.Length;StringBuilder temp = new StringBuilder(str);temp.Replace(",", "", length - 1, 1);str = temp.ToString();
时间:2024-04-09 08:10:26
源码实例如下:
string str = "faewfaega,";int length = str.Length;StringBuilder temp = new StringBuilder(str);temp.Replace(",", "", length - 1, 1);str = temp.ToString();