5

Pythonのようなinput()関数を使用してipythonノートブックを使用してキーボードから値を入力しようとすると、エラーが発生します。

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

同じことがPythonでも正しく機能します。ipythonノートブック環境でこれを行うにはどうすればよいですか?

前もって感謝します。

4

1 に答える 1