我正在使用 qpython
,当我正在使用 raw_input
函数时,我遇到了一个 EOF 错误,例如 -
print " what's ur name",
a = raw_input()
print " hello %r"%a
我得到了这个结果 -
what's ur name ?
Traceback (most recent call last):
File "main.py", line 2, in
a= raw_input()
EOFError: EOF when reading a line
有什么问题????
最佳答案
根据 Why is raw_input() missing? Any other alternatives?来自 QPython 论坛:
The raw_input function does not work because there is no console mode like the pc in QPython+. But there is another methord to get users input, you can do Kivy programming, it offer the UI support, and you can get user input by using it's dialog or other input method.
关于python - raw_input 的 EOF 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19462876/