初学Python遇到以下错误。求助!!!!
报错如下,代码见截图:"C:\Users\DocEcoHealth-hzq\PycharmProjects\1.1.1转换图像格式\venv\Scripts\python...
报错如下,代码见截图:"C:\Users\DocEcoHealth-hzq\PycharmProjects\1.1.1 转换图像格式\venv\Scripts\python.exe" "C:/Users/DocEcoHealth-hzq/PycharmProjects/1.1.1 转换图像格式/1.1.1.py"Traceback (most recent call last): File "C:/Users/DocEcoHealth-hzq/PycharmProjects/1.1.1 转换图像格式/1.1.1.py", line 2, in <module> from PCV.tools.imtools import get_imlist File "C:\Users\DocEcoHealth-hzq\AppData\Local\Programs\Python\Python36\Lib\site-packages\PCV\tools\imtools.py", line 27 print imname + "...skipped" ^SyntaxError: Missing parentheses in call to 'print'. Did you mean print(imname + "...skipped")?Process finished with exit code 1
展开
2个回答
2019-01-04
展开全部
看你截图的代码没什么问题
看报错信息SyntaxError: Missing parentheses in call to 'print'
imtools 里的print语法是python2.7的但是你的主程序是python3.6的所以你最好看一下imtools到底是2.7版本的还是3.6版本的
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询