我正在迭代一个具有多个键/值对的对象,我希望每次迭代时都创建一个数组,同时更新找到键的特定值。我有寻找特定键的逻辑,但在如何获取字典数组方面我还是一片空白
data = [{'source_id': source_id,
'order_items_code': order_items_code,
'color': color,
'print_sku': print_sku,
'monogram_type': monogram_type,
'letters': letters,
'shadow': shadow,
'front': front,
'stripes': stripes
}]
编辑以澄清:
目前没有回答
相关问题 更多 >
编程相关推荐