Python NameError:未定义名称"Print"

ZWD*_*ZWD 5 python

我在解释器上运行打印命令,打印此错误:

Python 3.2 (r32:88445, Feb 20 2011, 21:30:00) [MSC v.1500 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> Print ("Hello World")
Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    Print ("Hello World")
NameError: name 'Print' is not defined
>>> Print ('Hello World')
Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    Print ('Hello World')
NameError: name 'Print' is not defined
>>> Print("Hello World")
Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    Print("Hello World")
NameError: name 'Print' is not defined
Run Code Online (Sandbox Code Playgroud)

怎么Print不能定义?

dcr*_*sta 13

函数和关键字名称在Python中区分大小写.看起来你打字的Print意思print.


Joh*_*rth 6

Python区分大小写.

print('Hello World')