luogu-dev / cyaron

CYaRon: Yet Another Random Olympic-iNformatics test data generator
GNU Lesser General Public License v3.0
1.31k stars 164 forks source link

output_gen是否不支持多笔输入的文件? #72

Open Visors opened 4 years ago

Visors commented 4 years ago

我通过 while (cin >> s) 输入一行空格分隔的不定长句子,使用output_gen获得输出时报错 Traceback (most recent call last): File "C:/Users/Visors/Desktop/Round#1/cyaron/source/A.py", line 19, in <module> data_file.output_gen(r"F:\ACMLAB\SCPC\SCPC_Round#1\A.exe") File "C:\Users\Visors\Anaconda3\lib\site-packages\cyaron\io.py", line 171, in output_gen subprocess.check_call(shell_cmd, shell=True, stdin=self.input_file, stdout=self.output_file, universal_newlines=True) File "C:\Users\Visors\Anaconda3\lib\subprocess.py", line 347, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'F:\ACMLAB\SCPC\SCPC_Round#1\A.exe' returned non-zero exit status 1.