Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/356.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在powershell中打开python shell时,无法将其关闭_Python_Powershell - Fatal编程技术网

在powershell中打开python shell时,无法将其关闭

在powershell中打开python shell时,无法将其关闭,python,powershell,Python,Powershell,在PowerShell中打开python shell时,无法使用Ctrl+c、Ctrl+z或Ctrl+d将其关闭。我发誓它以前工作过,它在VS代码的终端上也工作过,所以我不太确定powershell到底出了什么问题。退出的唯一方法是使用quit()函数 当我按Ctrl+c组合键时,我得到 键盘中断 Ctrl+d让我明白了 对于Ctrl+z也是如此 信息: 视窗10 python 3.8.0 根据,Windows上的eof与*nix不同 是Windows上的Crtl+z提供了文件的结尾,而

在PowerShell中打开python shell时,无法使用Ctrl+c、Ctrl+z或Ctrl+d将其关闭。我发誓它以前工作过,它在VS代码的终端上也工作过,所以我不太确定powershell到底出了什么问题。退出的唯一方法是使用quit()函数

当我按Ctrl+c组合键时,我得到

键盘中断
Ctrl+d让我明白了

对于Ctrl+z也是如此

信息:

  • 视窗10

  • python 3.8.0

根据,Windows上的eof与*nix不同

是Windows上的Crtl+z提供了文件的结尾,而不是Crtl+d


因此,按Crtl+z和enter应该可以做到这一点。

不幸的是,Crtl+z由于某种原因不起作用,它只是输入
^z
@AndrewLi你按enter了吗?
^d