阅读背景:

IndexError:列表索引超出范围

来源:互联网 

Here is my code for part of my "Hunt the Wumpus (WAMPA)" game. It works if I make the range (0,20), but if I do (1,21) so there are still 20 caves, but no "Cave number 0"...which is just me being finnicky...and it tells me that the list index is out of range...not sure why moving everything up one digit in my range would do this, as there is no direct reference to a specific number in that range anywhere else...so removing 0 shouldn't be an issue, but alas...it is...here is the code where the error is from:Here is my code for part of my "Hunt the Wumpus




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: