标签:io ar color os sp for on bs cti
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace eluosi
{
class Program
{
static void Main(string[] args)
{
Random r = new Random();
Console.Title = "彩色控制台";
while (true)
{
Console.BackgroundColor = (ConsoleColor)r.Next(9, 15);
Console.ForegroundColor = (ConsoleColor)r.Next(9, 15);
Console.Clear();
for (int i = 0; i < 10; i++)
{
Console.Write("张君红");
}
System.Threading.Thread.Sleep(1000);
}
Console.ReadLine();
}
}
}
标签:io ar color os sp for on bs cti
原文地址:http://www.cnblogs.com/zhang-2052975439/p/4133640.html