python input print 输入输出

在python3.0以后的版本中,raw_input和input合体了,取消raw_input,并用input代替,
所以现在的版本input接收的是字符串,你可以用:
x = int(input("x: "))
 
x = input("input x:")
print(int(x)+1)
image 
原文地址:https://www.cnblogs.com/helloweworld/p/2943282.html