新建一个txt文档输入以下内容 Thread.sleep(100)//是线程沉睡100ms 保存成Learn.java 打开powershell运行javac Learn.java以及java Learn即可