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

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 

IvanLee200
浏览 666回答 1
1回答

pardon110

分明就是一个python集合的补集运算,先将字典A或B的值视图取出,转为各自的集合类型 然后进行^补集运算(又称对称差集),就可得到结果了。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Python