版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wtxhai/article/details/88689310
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Example607_02
{
class Program
{
static void Main(string[] args)
{
string str1 = "马云成功的秘诀是:永不抱怨。";
Console.WriteLine(str1);
string str2 = str1.Replace("马云", "我们");
Console.WriteLine(str2);
Console.ReadLine();
}
}
}