2条回答 默认 最新
threenewbee 2019-11-04 09:59关注list indices must be integers or slices
说得很清楚,下表索引必须是整数或者切片。
而你customer[i][j]是字符串wei[int(customer[i][j])] = int(wei[int(customer[i][j])]) + int(customer[i][0])本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
list indices must be integers or slices
说得很清楚,下表索引必须是整数或者切片。
而你customer[i][j]是字符串
wei[int(customer[i][j])] = int(wei[int(customer[i][j])]) + int(customer[i][0])