I have viewed some methods of calling an external program using python, the main method is to use subprocess, however I also want to execute the commands of that external program.
For example:
In python:
call that program;
execute command "operation1" (this is not a Python command but a command used in the external program);
print intermediate results;
Thank you very much!