Python学习08

1.使用print输出时报错:

  Missing parentheses in call to 'print'.  ----在调用“print”时缺失了括号。

  输出代码是:

1 print 'hello world'

  因为我用的是Python3.x,Python3.x中print后面是要加括号输出,正确的代码应该是:

1 print ('hello world')

 

原文地址:https://www.cnblogs.com/kylyww/p/7762437.html