????

 

>>> test1 = ["aaa","bbb","ccc","ddd","eee","fff","ggg"]
>>> for i in test1:
    test1.remove(i)

    
>>> test1
['bbb', 'ddd', 'fff']

 

posted @ 2020-12-26 22:53  小鲨鱼2018  阅读(56)  评论(0编辑  收藏  举报