有人可以在python 2.5中为我提供帮助吗?

问题描述:

我写这段代码:

I write this code:

size = input ("enter the size:")
newarray = zeros (size,Int) # To Create empty array ready to receive result
for i in range(0,size):
   item= input ("enter items:")
   newarray[i]=item
print newarray



有一个错误,它像这样告诉我:
回溯(最近通话最近):
在< module>
中的文件< pyshell#1>"第1行 n = zeros(size,Int)
NameError:未定义名称零"




There is an error, it tells me like this:
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
n=zeros(size,Int)
NameError: name ''zeros'' is not defined


Can any one help me in this error?

错误消息似乎很清楚;可以解决这个问题.您正在调用一个尚未定义的函数(zeros).
The error message seems reasonably clear; you are calling a function (zeros) which has not been defined.


我知道,现在我该如何解决??
i know that , now how i can fixed that ??