源代码
fruits = ['apple', 'banana', 'cherry'] fruits.remove("banana") print(fruits)
运行结果