我正在编写一个使用 raw_input 的简单命令行脚本,但它似乎不起作用。
这段代码:
print "Hello!"
raw_input("")
产生此错误:
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
raw_input("")
TypeError: 'str' object is not callable
我以前从未遇到过此错误,并且在 Google 上找不到任何内容。我在 Windows 7 上使用 Python 2.6。