输入一个列表,并输入一个索引值,删除该索引值对应的列表元素
a=[1,2,3] index=int(input('输入索引')) assert index>=0 and index<len(a),'输入错误' del a[index] print(a)