有以下几种方法可以删除多个元素:
my_list = [1, 2, 3, 4, 5]
del my_list[1:3]
print(my_list) # [1, 4, 5]
my_list = [1, 2, 3, 4, 5]
my_list = [x for x in my_list if x not in [2, 3]]
print(my_list) # [1, 4, 5]
my_list = [1, 2, 3, 4, 5]
my_list = [x for x in my_list if x != 2 and x != 3]
print(my_list) # [1, 4, 5]
my_list = [1, 2, 3, 4, 5]
my_list.pop(1)
my_list.pop(1)
print(my_list) # [1, 4, 5]