使用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

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

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

Answerhttp://www.cnblogs.com/way_testlife/archive/2011/03/29/1999283.html

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-12-04
  • 2022-12-23
  • 2022-02-20
相关资源
相似解决方案