W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
demo_python_set_del.py:
thisset = {"apple", "banana", "cherry"} del thisset print(thisset) #this will raise an error because the set no longer exists
C:\Users\My Name>python demo_python_set_del.py
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