>>> import subprocess
>>> subprocess.Popen("pwd")
<subprocess.Popen object at 0xa7692cc>
>>> subprocess.call(["ls", "-l"])
0
I have tried the above command in Python interactive shell and expect to see the output inside the shell environment. However, it ends up with just some return values.
我应该做些什么来让在炮弹内印制的返回结果?