執行 ❯
擁有你自己的 Python 伺服器
×
更改方向
更改主題,深色/淺色
前往 Spaces
thisset = {"apple", "banana", "cherry"} del thisset print(thisset) #this will raise an error because the set no longer exists
回溯 (最近一次呼叫最後)
檔案 "demo_set_del.py",第 5 行,在 <module> 中:
print(thisset) # 這將引發一個錯誤,因為該集合已不再存在
NameError: name 'thisset' is not defined