🌈 搜索
📅  最后修改于: 2022-03-11 14:45:25.401000             🧑  作者: Mango
d = {} for elem in l: if elem[1] in d: d[elem[1]].append(elem[0]) else: d[elem[1]] = [elem[0]]