标签:int color 删除 div style python pre pytho code
myDict = {‘a‘:1,‘b‘:2,‘c‘:3,‘d‘:4} print(myDict) if ‘a‘ in myDict: del myDict[‘a‘] print(myDict)
python 删除字典元素
原文地址:https://www.cnblogs.com/sea-stream/p/9985497.html