Thread类常用方法sleep 静态方法: Thread.sleep(这里是long类型的毫秒值); 需要在main方法抛出异常throws InterruptedException,或用try……catch处理