C#将‘@@@’插入到字符串的第 2 个字符的位置。

class Program
{
    static void Main(string[] args)
    {
        string str = Console.ReadLine();
        str = str.Insert(1, "@@@");
        Console.WriteLine("新字符串为:" + str);
    }
}

 

posted @ 2019-12-23 13:40  highlightyys  阅读(661)  评论(0)    收藏  举报