variable1 = 3
variable2 = "Hello"
print("variable 1 is", variable1)
print("variable 2 is", variable2)
print("Enter a new value for variable 1: ")
variable1 = input()
print("variable 1 is now ", variable1)
print("Enter a new value for variable 2: ")
variable2 = input()
print("variable 2 is now ", variable2)
variable3 = variable1+variable2
print("Variable 3 is the addition of variable 1 and 2 which is ", variable3)
为什么variable1和variable2在我运行程序时加起来不正确?谢谢你的阅读!