它向我显示了一个类型错误,列表是不可调用的[python]

它向我显示了一个类型错误,列表是不可调用的[python],python,typeerror,Python,Typeerror,当我运行这段代码时,它向我显示了一个错误,数组列表不可调用,但为什么 array= [2,5,7,5,7,5,4,4] for x in range(0,len(array)): total = total + array(x) print("total is equals to = {}".format(total))``` array(x)需要是array[x] total = total + array[x] 如果要访问数组的元素,需要使用[]表示法,而不是()

当我运行这段代码时,它向我显示了一个错误,数组列表不可调用,但为什么

array= [2,5,7,5,7,5,4,4]

for x in range(0,len(array)):
    total = total + array(x)

print("total is equals to = {}".format(total))```
array(x)
需要是
array[x]

 total = total + array[x]
如果要访问数组的元素,需要使用
[]
表示法,而不是
()