摘要: 本博文中含有来源多处的总结,没有能够将所有的来源引用 python中删除list中的元素方法:remove,pop,del str=[1,77,8,0] remove:按值删除 str.remove(8) pop:按索引删除,会返回被删除的元素 str.pop(2) del:按索引删除,还可以删除指 阅读全文
posted @ 2016-07-07 10:55 simple_wxl 阅读(348) 评论(0) 推荐(0) 编辑