In Python3.x, error using print (SyntaxError: Missionries in call to 'print')


Python2 to Python3, many basic functional interfaces have changed, and even some libraries or functions have been removed or renamed. 

In Python 3.x, the print is a function, which means that it needs to be written as print (a) rather than paper a, except that it works in similar ways and with statements.

The difference in the grammatical aspects of python 2.x and Python 3.x functions is:

# Python 2.x: 
print a # 要打印的内容a不带括号
 
# Python 3.x: 
print (a) # 要打印的内容a必须带括号

未经允许不得转载:萌萌Apprentissage » In Python3.x, error using print (SyntaxError: Missionries in call to 'print')

Like (0) 打赏

Comments 0

Protected with IP Blacklist CloudIP Blacklist Cloud
  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏

//下一个脚本特效
//下一个脚本