摘要: 从列表中删除元素 1. 使用del 语句删除元素 使用del 可删除任何位置处的列表元素,条件是知道其索引。 ['thompson', 'curry', 'bogute']['thompson', 'curry'] 2. 使用方法pop() 删除元素 方法pop() 可删除列表末尾的元素,并让你能够 阅读全文
posted @ 2017-09-20 19:30 ㊣蚂蚁小兵 阅读(160) 评论(0) 推荐(0) 编辑