🌈 搜索
📅  最后修改于: 2022-03-11 14:46:41.751000             🧑  作者: Mango
from collections import OrderedDict o = collections.OrderedDict() for i in data: o.setdefault(i[0], []).append(i[1])