在ipython笔记本中读取输入值

res*_*i g 5 python ipython ipython-notebook

每当尝试使用像python这样的input()函数使用ipython notebook从键盘输入值时,就会出错.

EOFError                                  Traceback (most recent call last)
<ipython-input-1-725a22d6f154> in <module>()
     8 #Reads three Input values for x,y and z
     9 print "Enter Values of x, y, z :- "
---> 10 x = input()
     11 y = input()
     12 z = input()

EOFError: EOF when reading a line
Run Code Online (Sandbox Code Playgroud)

同样在python中正常工作.我怎么能在ipython笔记本环境中这样做?

提前致谢.

Mat*_*att 4

使用raw_input。(还有更多的字符,所以让我可以发布答案)

  • 笔记本上只有1.0支持。 (2认同)