C# Hello World

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
  class Program
  {
    static void Main(string[] args)
    {
    Console.BackgroundColor = ConsoleColor.White;
      Console.ForegroundColor = ConsoleColor.Black;
    Console.WriteLine("Hello World");
    }
  }
}

//若 先输出‘‘Hello World‘‘ 后改变字体颜色  则字体会变为灰色

时间: 2025-01-13 17:43:28