xString = input("Enter a number: ")
x = int(xString)
yString = input("Enter a second number: ")
y = int(yString)
print('The sum of ', x, ' and ', y, ' is ', x+y, '.', sep='')
在执行上面的代码时,解释器抛出语法错误,提示语法错误如下。
print(?The sum of ?, x, ? and ?, y, ? is ?, sum, ?.?, sep=??)