📜  c# 更改控制台颜色 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:18.904000             🧑  作者: Mango

代码示例1
Console.BackgroundColor = ConsoleColor.Green;
            Console.ForegroundColor = ConsoleColor.DarkGreen;
            Console.Clear();
            //green on green
            Console.WriteLine("yo");
            Console.ReadLine();