System.setOut(ps)重定义了输出流后,如何重定向控制台输出 可以用System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));重新定位到标准输出流