原文:菜鸟教程 Missing parentheses in call to 'print'

个人博客 地址:http: www.wenhaofan.com article gt gt gt print hello SyntaxError: Missing parentheses in call to print 在环境搭建章节中的路径下载了最新的Python安装包并完成安装后,在cmd窗口执行菜鸟教程第一个 Python 程序中的代码:print Hello, Python 提示 gt ...

2018-09-12 21:07 0 753 推荐指数:

查看详情

Python Missing parentheses in call to 'print'

原来是因为Python2.X和Python3.X不兼容。 我安装的是Python3.X,但是我试图运行的却是Python2.X 的代码。 所以上面的语法在python3中是错误的。在python3中,你需要将print后面的语句加括号,所以截图里直接放上了正确的敲法 ...

Wed Nov 21 01:10:00 CST 2018 0 2452
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM