当尝试启动程序时,我在第19行得到"IndexError: string index out of range“错误。是因为我忘记了终止字符串或将其转换回整数吗?python非常新,所以任何帮助或琐事都将不胜感激。 我试着这样做doubleCheck = int(strNumber[i] * 2),但它不能解决问题。我做错了吗?这是完整的代码,以防以后出现错误。
我想做一个脚本,将输入字符串字母一个接一个 count = len(info) #Countign number of letters of the stringsys.stdout.write(splitlist[i]) i -= 1
autotype(info)
错误是:列表索引超出范围我该如何修复它