首页 > 其他 > 详细

print "hello" SyntaxError: Missing parentheses in call to 'print'

时间:2015-10-07 10:50:17      阅读:269      评论:0      收藏:0      [点我收藏+]

问题:

print "hello" SyntaxError: Missing parentheses in call to ‘print‘

 

解决:

python3取消了这种用法。使用 print(‘hello"),这种来输出。
python3 语法 和 python2 已经变得有些差别了。
python3中,去除了print语句,加入print()函数实现相同的功能。

备注:parentheses :parenthesis的名词复数, 圆括号,插入语,插曲;

 

print "hello" SyntaxError: Missing parentheses in call to 'print'

原文:http://www.cnblogs.com/zhicn/p/4858268.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!