我有两个字典列表,我不在乎输出是否有重复值。
first = [{"1": "a"}, {"2": "b"}]
second = [{"3": "c"}, {"4": "d"}]
我想创建一个看起来像这样的列表:
third = [{"1": "a"}, {"2": "b"}, {"3": "c"}, {"4": "d"}]
我试图这样做
third = first.append(second)
但是,这给了我
third = [[{"1": "a"}, {"2": "b"}], [{"3": "c"}, {"4": "d"}]]