Python删除list中的元素

 使用remove方法,例如:
a=["aa","bb"]
a.remove("aa")
#["bb"]

posted @ 2015-07-01 22:54  土豆土豆好  阅读(179)  评论(0)    收藏  举报