0
点赞
收藏
分享

微信扫一扫

Statements must be separated by newlines or semicolons

JakietYu 2022-08-22 阅读 129


文章目录

  • ​​问题​​
  • ​​解决​​
  • ​​参考​​

问题

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​​


举报

相关推荐

0 条评论