码上快乐
1秒登录
首页
榜单
标签
关于
搜索
相关内容
简体
繁体
Python Missing parentheses in call to 'print'
本文转载自
查看原文
2018-11-20 17:10
2452
Python
原来是因为Python2.X和Python3.X不兼容。
我安装的是Python3.X,但是我试图运行的却是Python2.X 的代码。
所以
上面的语法在python3中是错误的。在python3中,你需要将print后面的语句加括号,所以截图里直接放上了正确的敲法
×
免责声明!
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。
猜您在找
解决python 提示 SyntaxError: Missing parentheses in call to 'print'
菜鸟教程 Missing parentheses in call to 'print'
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('XXXXXX')?
使用print时出错 SyntaxError: Missing parentheses in call to 'print' Did you mean print("Usage....
[leetcode]Valid Parentheses @ Python
panic: time: missing Location in call to Time.In
Missing space before function parentheses space-before-function-paren报错
Python print() 函数
Python input和print函数
python的print()输出
粤ICP备18138465号
© 2018-2025 CODEPRJ.COM