x>0 程序运行持续x ms 在等待的x ms中,按下 返回键盘的操作值 否则返回-1 x<=0 等待键位操作,按下 返回键盘的操作值 否则返回-1 转载于:https://www.cnblogs.com/pacino12134/p/10984577.html