在cargo 1.93.0中,使用`cargo run > output.txt`并不能把控制台内容输出到文件中,因为默认的文件描述符是1(stdout),需要显式指定2(stderr),`cargo run 2> output.txt`