fruits = {"apple", "banana", "cherry"} del(fruits) #从内存中删除fruits fruits = {"apple", "banana", "cherry"} fruits.clear() #从清空集合fruits的内容,内存地址不删除
上帝也编程
717***589@qq.com