📜  从 dict python 代码示例中删除键

📅  最后修改于: 2022-03-11 14:45:39.812000             🧑  作者: Mango

代码示例1
''' 
Deleting an entry from dictionary using del 
'''
# If key exist in dictionary then delete it using del.
if "at" in wordFreqDic:
    del wordFreqDic["at"]
    
print("Updated Dictionary :" , wordFreqDic)