kit-programmieren-ws1920-fi.../check_from_input_output.py

16 lines
308 B
Python
Raw Permalink Normal View History

import sys
fuzz = sys.argv[1]
input = open(fuzz + "_input.txt", "r")
output = open(fuzz + "_output.txt", "r")
for line in input.readlines():
if not line.startswith("#"):
print(">", line, end="")
for line in output.readlines():
if line.startswith("Error, "):
print("<e")
else:
print(line, end="")