【发布时间】:2016-09-16 17:08:35
【问题描述】:
array = 某种列表,其中包含 3 列和无限数量的行,其中包含数据。
Volume = array[0][2]
counter = 0
for i in array:
if Volume == array[i][2]: #<------ why is this line a problem?
counter += 1
【问题讨论】:
标签: list python-3.x indices equivalent