您的位置:首页 > 编程语言 > Python开发

python2.7下input()函数输入参数

2018-03-07 21:10 363 查看
使用input()函数,在运行时输入字符需要用引号括起来。但在交互模式下不需要

question:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
input_A = input("Input: ")
File "<string>", line 1, in <module>
NameError: name 'abc' is not defined





Answer:http://www.cnblogs.com/way_testlife/archive/2011/03/29/1999283.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: