相关疑难解决方法(0)

在Python中,"SyntaxError:调用'print'时缺少括号"是什么意思?

当我尝试print在Python中使用语句时,它给了我这个错误:

>>> print "Hello, World!"
  File "<stdin>", line 1
    print "Hello, World!"
                        ^
SyntaxError: Missing parentheses in call to 'print'
Run Code Online (Sandbox Code Playgroud)

那是什么意思?

python python-3.x

378
推荐指数
7
解决办法
70万
查看次数

使用Python 3打印时出现语法错误

为什么在Python 3中打印字符串时会收到语法错误?

>>> print "hello World"
  File "<stdin>", line 1
    print "hello World"
                      ^
SyntaxError: invalid syntax
Run Code Online (Sandbox Code Playgroud)

python python-3.x

260
推荐指数
3
解决办法
22万
查看次数

标签 统计

python ×2

python-3.x ×2