所以我试图理解这种行为。我打开cmd
(还没有检查bash)并启动一个python控制台。你知道吗
import subprocess
proc = subprocess.Popen("cmd",shell=True)
现在我回到cmd
,正如我所期望的那样,点击ctrl-c
会把我弹回到python shell
,但这就是它变得奇怪的地方,因为当我再次点击ctrl-c
而不是像通常那样在python shell
中按KeyboardInterupt
时,它现在会弹回到cmd
。。。shell之间的ctrl-c
循环可以继续。你知道吗
这是怎么回事??
提前谢谢!你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐