📜  python list clear vs del - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:38.488000             🧑  作者: Mango
代码示例2
lst = ['i1', 'i2', 'i3']
lst.clear() #clears the contents of list
#lst[:] can also be used
#fastest is lst *= 0