当前位置: 动力学知识库 > 问答 > 编程问答 >

Data structure in python 2.7

问题描述:

This question already has an answer here:

  • Data structure in Python

    1 answer

网友答案:

zipping names with list_price does most of the work for you:

result = []
for name, prices in zip(names, list_price):
    result.append({"name": name, "size_price": prices, "size": size})
分享给朋友:
您可能感兴趣的文章:
随机阅读: