在System 命名空间中的 Console 类提供了一个方法 ReadLine(),用于接收来自用户的输入,并把它存储到一个变量中。 例如: string input = Console.ReadLine();Consold.WriteLine(input);