📌  相关文章
📜  如何在python代码示例中删除整个列表

📅  最后修改于: 2022-03-11 14:46:02.271000             🧑  作者: Mango

代码示例6
lst = ['i1', 'i2', 'i3']
lst.clear() #clears the contents of list
#lst[:] can also be used
#fastest is  lst *= 0