Python 子进程调用git pull weired,为什么;git pull“;工作,但是;吉特&引用;拉;不

Python 子进程调用git pull weired,为什么;git pull“;工作,但是;吉特&引用;拉;不,python,subprocess,Python,Subprocess,工作代码: subprocess.Popen(['git pull'],…) 未工作代码: subprocess.Popen(['git','pull'],…) stdout show:git命令帮助 为什么? Python2.7linux你确定这是第二段不起作用的代码吗?是的,我确定。

工作代码:

subprocess.Popen(['git pull'],…)

未工作代码:

subprocess.Popen(['git','pull'],…)

stdout show:git命令帮助

为什么?


Python2.7linux

你确定这是第二段不起作用的代码吗?是的,我确定。