python字典的删除

dict,pop('key')
删除某个键值对,并返回value值
 
dict = {}
清空字典
 
del dict
删除字典
posted @ 2022-06-29 13:51  opscool  阅读(145)  评论(0)    收藏  举报