字符串的两种循环方式

            //string str = new string('a', 21);
            //Console.WriteLine(str);
            //Console.ReadKey()
            string str="";
            for (int i = 0; i < 20; i++)
            {
                str += "A";
            }
            Console.WriteLine(str);
            Console.ReadKey();

posted on 2016-04-06 11:55  路上有你F  阅读(1248)  评论(0编辑  收藏  举报