问题

 print "www.baidu.com"           Python2

 print ("www.baidu.com")     Python3

出现

 

SyntaxError: Missing parentheses in call to 'print'

原因:Mac安装俩个python版本,2和3,python2系列可以支持 print “xxxx” ,python系列需要使用print("xxx")

相关文章:

  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2021-12-19
  • 2021-08-03
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案