Python raw_input 报错

0
如下所示,在IDLE中输入 raw_input("Input:")报错。
不知道是什么原因引起的。
Python小白,请求大家帮助。
 
>>> raw_input("Input:")
Traceback (most recent call last):
  File "<pyshell#6>", line 1, in <module>
    raw_input("Input:")
NameError: name 'raw_input' is not defined
>>>
已邀请:
2

老头子 - 专注是唯一的捷径 2016-10-26 回答

python 3.2版本就没有raw_input了
input和raw_input整合了
0

黄金阳 - BIEE技术人员 2016-10-26 回答

直接使用input

要回复问题请先登录注册