删除字典特定元素

it2022-12-30  63

fruits = {'西瓜':15,"香蕉":20} print(fruits['香蕉']) fruits['香蕉']= 21 print(fruits['香蕉']) del fruits['香蕉'] print(fruits)
最新回复(0)