标签: python-3.x
为什么显示
TypeError:字符串索引必须是整数
当我运行以下代码时(它不是完整代码)
for i in range(length - k + 1): temp = int(s[i, i + k]) #Error occuring here sum_l = 0