contacts = { 'name':'张三', 'sex':"男", 'salary':'8000' } print(contacts.popitem()) # 删除随机键值对,返回键值对 print(contacts)