问题描述:

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})
相关阅读:
Top