Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Hello, color text!");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Hello, color text!");
Console.ReadKey();
C#控制台字体颜色
最新推荐文章于 2024-07-02 04:52:11 发布
Console.ForegroundColor = ConsoleColor.Blue;
Console.WriteLine("Hello, color text!");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Hello, color text!");
Console.ReadKey();