C# 替换字符串-Replace

语法:

Replace(char oldChar, char newChar) 将此实例中的指定 Unicode 字符的所有匹配项替换为其他指定的Unicode 字符

Replace(string oldValue, string newValue) 将此实例中的指定 String 的所有匹配项替换为其他指定的 String。

具体如下:

猜你喜欢

转载自blog.csdn.net/qq_42675313/article/details/81712253