不需要导入什么包try{
    Thread.sleep(1000); //时间单位为毫秒,延时1秒
}catch(InterruptedException e{}