f(){ info=console.readkey(); if(info == ConsoleKey.Escape) console.write("exit"); int n = Convert.ToInt32(Console.ReadLine()); } 我必须说,如果"逃生"被按下,quit.but 由用户按下第一个字符是不会显示在窗口中,如果它不能逃脱...
f(){ info=console.readkey(); if(info == ConsoleKey.Escape) console.write("exit"); int n = Convert.ToInt32(Console.ReadLine()); }