📜  在 python 代码示例中使用列表后如何删除列表

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

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