python 中古怪的input()错误(已解决)

在windows下
width = input('Please enter width: ') 


这条语句
为什么我在 IDLE下运行就是 正确的 而在pydev+eclipse 下,一运行然后输入 数字 打个回车就会出错呢? 只能用raw_input来代替.
错误显示  SyntaxError: unexpected EOF while parsing

文档中 This function is not safe from user errors! It expects a valid Python expression as input; if the input is not syntactically valid, a SyntaxError will be raised

在这里not syntactically 指的是什么 呢 ?

你可能感兴趣的:(eclipse,C++,c,windows,python)