[{'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}]
[{'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}]
怎么把它变成[{'status': 'Freight on hand','date': '10 Dec 2021 16:48'}, {'status': 'Freight on hand','date': '10 Dec 2021 16:48'}........的样子
a = [{'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}, {'status': 'Freight on hand'}]
b = [{'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}, {'date': '10 Dec 2021 16:48'}]
c = [ {**v1,**v2} for v1,v2 in zip(a,b)]
print(c)
c = [{"date": i['date'], 'status': 'Freight on hand'} for i in b]