АЛ
Size: a a a
АЛ
АЛ
I

A
A
R3
R3
A
A
R3
R3
A
R3
P
AT
P
AT
A
p = subprocess.Popen(exe, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
# Use thread to just feed as many newlines as needed to stdin of subprocess
feeder = threading.Thread(target=feednewlines, args=(p.stdin,))
feeder.daemon = True
feeder.start()
A