LI =[32,43,22,354,323,4]# 使用下标访问print(LI[5])
LI =[32,43,22,354,323,4]# 使用下标访问print(LI[15])#索引错误,下标超标
4
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
<ipython-input-9-d10cedd457cb> in <module>()
5 LI = [32,43,22,354,323,4]
6 # 使用下标访问
----> 7 print(LI[15])
IndexError: list index out of range