windows 下用 .bat 文件控制程序编译、对不同输入输出文件运行。 @echo off setlocal enabledelayedexpansion cls diff main.cpp test/main.cpp > log/diff.txt g++ -O3 main.xfsh.cpp -o test -lpthread REM main.exe test_data.txt log/out.test_data.txt REM python check.py -a result.txt -b log/out.test_data.txt for %%F in (dataset/data.