python中input出现的name“ 字符串” is notdefined.

在运行程序中,出现错误:
name“字符串 ” is not defined.
解决办法,input改为raw_input,因为raw_input将所有的输入看作字符串,并且返回一个字符串类型。

相关文章:

  • 2021-08-26
  • 2021-09-24
  • 2021-10-14
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-06-30
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
相关资源
相似解决方案