给定python代码的print语句的语法错误是什么原因

Sri*_*P S -5 python printing concatenation syntax-error

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='')
Run Code Online (Sandbox Code Playgroud)

在执行上面的代码时,解释器抛出语法错误,说法语错误如下.

 print(?The sum of ?, x, ? and ?, y, ? is ?, sum, ?.?, sep=??)
Run Code Online (Sandbox Code Playgroud)

SyntaxError:语法无效

wim*_*wim 5

这是因为像那些古怪的引用字符.将它们更改为'字符,你不应该有任何问题.