SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
时间: 2024-04-29 19:25:50 浏览: 321
CentOS7运行.sh脚本提示syntax error: unexpected end of file的解决方法
5星 · 资源好评率100%
This error message is indicating that the code is missing parentheses in a print statement. The correct syntax for a print statement in Python 3.x is to include parentheses around the content to be printed. For example:
Incorrect:
```
print "Hello, world!"
```
Correct:
```
print("Hello, world!")
```
Make sure to add the parentheses around the content to be printed and try again.
阅读全文