时间:2020-10-19 14:34:59 | 栏目:Python代码 | 点击:次
example:
for item in warehouse_list: warehouse_id = item['warehouse_id'] warehouse = Warehouse.objects.get(id=warehouse_id) item['warehouse_owner_id'] = warehouse.owner_id item['warehouse_name'] = warehouse.warehouse_name
这个功能实在太强大了,python好棒。