问题 Python程序报错: Statements must be separated by newlines or semicolons,原因是Python3与Python2的区别,需要加上括号,问题解决。 解决 把参数放在括号中,例如: print “Ready to add two ints.” 改为: print (“Ready to add two ints.”) 参考 StackOverflow: Statements must be separated by newlines or semicolons