1 2 3 4 5 6 7 8
import sys def log(msg, line_break=True): sys.stdout.write(msg) if line_break: sys.stdout.write("\n") sys.stdout.flush()