How do I replicate the following batch command using python subprocess module?
myprogram < myinput.in > myoutput.out
In other words, how do I run myprogram
using the contents of myinput.in
as the standard input and myoutput.out
as standard output?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…