解决列表和元组多索引bug问题(TypeError: list indices must be integers or slices, not tuple)
在对列表和元组进行索引的时候,发现使用多维索引会出现以下bug:TypeError:listindicesmustbeintegersorslices,nottupleTypeError:tupleindicesmustbeintegersorslices,nottuplelist:list1=[[1,2,3],[4,5,6]]m1=list1[1,0]tuple:tuple1=((1,2,3),