语法1: del列表[下标]语法2:列表.pop(下标)
删除某元素在列表中的第一个匹配项语法:列表.remove(元素)my_list=[1,2,3,2,3]my_list.remove(2)print(my_list)# 结果:[1,3,2,3]