没有发现在我的代码在python类型错误:列表对象在python
for i in array_config(1,len_config):
print array_config[2]
显示
TypeError: 'list' object is not callable
(array_config是配置文件的一个阵列) (len_configs值为7)
如何删除该错误?
没有发现在我的代码在python类型错误:列表对象在python
for i in array_config(1,len_config):
print array_config[2]
显示
TypeError: 'list' object is not callable
(array_config是配置文件的一个阵列) (len_configs值为7)
如何删除该错误?
你想*做* *什么?你不能使用这个列表作为一个函数,但是你的目标是什么呢? –
为什么重复打印'array_config [2]'? –
也许你的意思是'array_config [1:len_config]'? – iCodez