python报错 list indices must be integers or slices, not tuple
报错程序importnumpyasnpb=[[2,3,4][2,3,4]]c=[[1,2,3][1,2,3]]B=[np.sum(np.abs(a-c))forainb]print(B)#报错行:b=[[2,3,4]#TypeError:listindicesmustbeintegersorslices,nottuple#列表索引必须是整数或片,而不是元组列表索引必须是整数或片,而不是元组下面是修