运行 ❯
获取您自己的
Python
服务器
×
更改方向
更改主题,深色/浅色
前往 Spaces
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } del thisdict print(thisdict) #this will cause an error because "thisdict" no longer exists.
Traceback (最近一次调用最后)
File "demo_dictionary_del3.py", line 7, in <module>
print(thisdict) #这将导致错误,因为“thisdict”不再存在。
NameError: name 'thisdict' is not defined