解决python 提示 SyntaxError: Missing parentheses in call to 'print'

练习python的输出时,发现直接输出变量名会报错,如下:

因为python2.X版本与python3.X版本输出方式不同,python3.X中输入内容时都要带上括号,而在2.X中直接输出就没有问题

 转自:https://www.cnblogs.com/chongyou/p/5843309.html

猜你喜欢

转载自blog.csdn.net/m0_37806112/article/details/85157845
今日推荐