解决:python中出现:list assignment index out of range.或者说如何存储遍历出来的数据
出现的bug:
Traceback (most recent call last):
File "E:/testPython/NumPY/test.py", line 67, in <module>
readIp()
File "E:/testPython/NumPY/test.py", line 59, in readIp
iplist[i]=ip
IndexError: list assignment index out of range
这是因为用列表装字典内容...
转载
2021-11-08 18:27:30 ·
5027 阅读 ·
0 评论