在python3.0以后的版本中,raw_input和input合体了,取消raw_input,并用input代替,
所以现在的版本input接收的是字符串,你可以用:
x = int(input("x: "))

 

 

 

 
x = input("input x:")
print(int(x)+1)
python  input  print 输入输出

相关文章:

  • 2022-12-23
  • 2021-04-02
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-14
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
  • 2021-09-09
  • 2022-12-23
相关资源
相似解决方案