主页
Python
Python 集合
demo_set_del
运行 ❯
×
更改方向
保存代码
更改主题
thisset = {"apple", "banana", "cherry"} del thisset print(thisset) #this will raise an error because the set no longer exists
Traceback (most recent call last):
File "demo_set_del.py", line 5, in <module>
print(thisset) #this will raise an error because the set no longer exists
NameError: name 'thisset' is not defined