```python
def find(con):
li=[]
for item in con:
li.append(item)
pass
for item1 in range(len(li)):
if item1%2==1:
del li[item1]
pass
pass
return li
pass
rs1=find([0,1,2,3,4,5,6,7,8])
print(rs1)
```最后会出现错误
Traceback (most recent call last):
File "D:\python文件\函数\作业.py", line 23, in
rs1=find([0,1,2,3,4,5,6,7,8])
File "D:\python文件\函数\作业.py", line 18, in find
del li[item1]
IndexError: list assignment index out of range
求解决方法