list是一种有序集合,可以随时添加或删除其中的元素。 例如,列出班里所有同学名字,可以使用一个list表示:
>>> students = ['Mike','Bob','Lucy'] >>> students = ['Mike','Bob','Lucy']