del dict2['name']#刪除鍵為“name”的條目。
dict2.clear()#刪除 dict2 中所有的條目
del dict2#刪除整個 dict2 字典
dict2.pop('name')#刪除並返回鍵為“name”的條目