.Net 6.0string? input = Console.ReadLine();input 就接收到的字符串,接受字符用ConsoleKeyInfo key = Console.ReadKey();char input = key.KeyChar;