A,B 各是一個dict
diff = set(B) -set(A)
dictionary - Calculate difference in keys contained in two Python dictionaries - Stack Overflow
http://stackoverflow.com/questions/1165352/calculate-difference-in-keys-contained-in-two-python-dictionaries
dictionary - Calculate difference in keys contained in two Python dictionaries - Stack Overflow
http://stackoverflow.com/questions/1165352/calculate-difference-in-keys-contained-in-two-python-dictionaries
沒有留言:
張貼留言