为了账号安全,请及时绑定邮箱和手机立即绑定

请问python这个问题怎么解决?

请问python这个问题怎么解决?

IvanLee200 2018-12-11 08:30:25
Given two dictionaries A and B: –Find all keys in A and B that have different values, or only in one dictionary but not the other 
查看完整描述

1 回答

?
pardon110

TA贡献1038条经验 获得超227个赞

分明就是一个python集合的补集运算,先将字典A或B的值视图取出,转为各自的集合类型 然后进行^补集运算(又称对称差集),就可得到结果了。

查看完整回答
反对 回复 2018-12-11
  • 1 回答
  • 0 关注
  • 665 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信