JAVA下的Thread.sleep方法一定要try时间:2021-11-04 04:08:36 try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } 不同于C#,JAVA里的Thread.sleep方法一定有异常