源代码
thislist = ["apple", "banana", "cherry"] thislist.clear() print(thislist)
运行结果