aa = [{105199: 'https://picx0.jpeg'}, {105187: 'https://picx1.jpeg'}, {105170: 'https:picx2.jpeg'}, {104574: 'https://picx3.jpeg'}]

from collections import ChainMap

chain_dict={}
for i,v in enumerate(aa):
    try:
        chain_dict = {**chain_dict,**{**aa[i],**aa[i+1]}}
    except Exception as e:
        pass
print(chain_dict)

 

相关文章:

  • 2022-12-23
  • 2022-02-11
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
猜你喜欢
  • 2021-12-12
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案