laojun001 发表于 2025-2-24 17:24

test02.py

from collections import ChainMap
a1 = {'a': 1, 'b': 2}
a2 = {'c': 3, 'd': 4}

combination = ChainMap(a1, a2)
print(combination)
print(combination['c'])
页: [1]
查看完整版本: test02.py