list indices must be integers or slices, not tuple
listindicesmustbeintegersorslices,nottuplepython原始的列表是不支持二维的切片的。因此传入元组报错。y=[[xforxinrange(j)]forjin[20]*20]print(y)#y[1:6,3:8]报错#listindicesmustbeintegersorslices,nottuple[[0,1,2,3,4,5,6,7,8,9,10,11,1