python 怎么把多个嵌套了元组的列表合并为一个嵌套了字典的列表

2025-03-13 23:16:12
推荐回答(1个)
回答1:

result=[]
for 列表 in 变量:
    result.append(dict(列表))
print result