1 | a = [1, 2, 3, 4] |
另外如果是字典也可以通過上面的方法.
不過卻會得出 Key 的列表.而不是完整的 Key 和 Value
關於字典方面可以參考至以下網址:
1 | a = {'a': 2, 'b': 1, 'c': 0} |
參考: http://code.activestate.com/recipes/576644-diff-two-dictionaries/
1 | a = [1, 2, 3, 4] |
另外如果是字典也可以通過上面的方法.
不過卻會得出 Key 的列表.而不是完整的 Key 和 Value
關於字典方面可以參考至以下網址:
1 | a = {'a': 2, 'b': 1, 'c': 0} |
參考: http://code.activestate.com/recipes/576644-diff-two-dictionaries/