橘子味的心
标题:Python3 列表List remove 方法

Python3 列表List remove 方法

#!/usr/bin/python3

list1 = ['physics', 'Biology', 'chemistry', 'maths']
list1.remove('Biology')
print ("list now : ", list1)
list1.remove('maths')
print ("list now : ", list1)

目录

分类