📜  python 两个字典相等 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:35.498000             🧑  作者: Mango

代码示例1
a = dict(one=1, two=2, three=3)
b = {'one': 1, 'two': 2, 'three': 3}
c = dict(zip(['one', 'two', 'three'], [1, 2, 3]))
d = dict([('two', 2), ('one', 1), ('three', 3)])
e = dict({'three': 3, 'one': 1, 'two': 2})
a == b == c == d == e
True