当我试图从字典中删除一个键时,我写道:
if 'key' in myDict: del myDict['key']
有这样一种方式吗?
python dictionary unset data-structures
data-structures ×1
dictionary ×1
python ×1
unset ×1