TypeError: 'list' object cannot be interpreted as an integer
要看上下文代码,具体有一个变量,是list类型,你却当作了整数值在用了。
简单说就是, 列表对象不能解释为整数语句for i in range()括号中必须为整数,你在检查一下