Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/281.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
Python3.3 input()不显示任何提示,并且发生在前面的命令之前_Python_Python 3.x_Notepad++_Conda - Fatal编程技术网

Python3.3 input()不显示任何提示,并且发生在前面的命令之前

Python3.3 input()不显示任何提示,并且发生在前面的命令之前,python,python-3.x,notepad++,conda,Python,Python 3.x,Notepad++,Conda,我正在运行python33,下面是我的代码: print("get input") uinp = input("get inputttt\n") print("uinp IS: " + uinp) 这个.py文件中完全没有其他内容,但是这个代码组合在另一个更大的程序中给我带来了一些麻烦 发生的事情是,我得到一个空白的命令行,我可以在其中键入,然后程序的其余部分通过。例如,对于输入“hello world”,以下是命令提示符的外观: hello world get input get input

我正在运行python33,下面是我的代码:

print("get input")
uinp = input("get inputttt\n")
print("uinp IS: " + uinp)
这个.py文件中完全没有其他内容,但是这个代码组合在另一个更大的程序中给我带来了一些麻烦

发生的事情是,我得到一个空白的命令行,我可以在其中键入,然后程序的其余部分通过。例如,对于输入“hello world”,以下是命令提示符的外观:

hello world
get input
get inputttt
uinp IS: hello world

C:\Program Files\Notepad++>

有关于问题所在的线索吗?我最好的猜测是,这可能与我如何在记事本++中调用python有关,通过
“C:\Windows\System32\cmd.exe”/k conda run“$(FULL\u CURRENT\u PATH)”
,但这怎么会导致这个问题呢?

记事本++必须在向您显示之前缓冲所有输出。更糟糕的是–input在崇高的文本中没有任何功能。在控制台中运行脚本以查看正确的行为。@usr2564301 ah,因此它可以在anaconda提示符和简单cmd上运行,但不能在conda到cmd上运行。非常感谢你!(虽然..你知道这是否可以修复吗?)如果你使用的是Anaconda,为什么不使用Spyder作为你的IDE呢?@S3DEV不幸的是,这是一台速度很慢的计算机哈哈哈