C# 怎麼把文字用**替換
阿新 • 來源:網路 • 發佈:2021-05-21
eg: string str = “關鍵人物老闆”;
Console.WriteLine(str);
if (str.Contains (“老闆”))
{
str=str.Replace(“老闆”,"**");
}
Console.WriteLine(str);
Console.ReadKey();
str.Replace


