# loop through every NxN cell in the target image
for (blk_row, blk_col) in itertools.product(xrange(cell_size - 1), cell_size), xrange(0, width - (cell_size - 1), cell_size)): 其中N=单元格大小,除以单元格大小得到索引是否有效
我想使用列表上的值作为范围,遍历列表长度给定的可变数量的索引。此外,我想在我的表达式中调用索引。例如,如果我有一个列表2,4,5,我想要如下内容: otherlist[i0]**i0 + otherlist[i2]**i2for [i for i in range(len(mylist))] in itertools.p