name = ['ludongjun','dahuangya','qq',8,9,1,'ludongjun',8,9,4,5,6,'ludongjun',7,3,0,1,2,4] print(name,' ') print('删除:') name.pop() #删除最后一个 print(name) name.remove('ludongjun') print(name) #删除从左往右数第一个'ludongjun'元素 del name[2] # del 是全局性删除指令 print(name) del name[3:5] #批量删 print(name,' ') name.clear() #清空列表 print(name)