TypeError: slice indices must be integers or None or have an __index__ method
目标
今天给大家带来Python程序中报错TypeError: slice indices must be integers or None or have an __index__ method
的解决办法,希望能够帮助到大家。
1. 错误提示
在执行Python3程序时,错误提示TypeError: slice indices must be integers or None or have an __index__ method
,小编的报错代码片段位置如下:
# 现在在每个级别中添加左右两半图像
LS = []
for la, lb in zip(lpA, lpB):
rows, cols