第一题 def run(lines): lines = [tuple(line) for line in lines] lines_f = sorted(lines, key=lambda x: x[0]) lines_e = sorted(lines, key=lambda x: x[1]) dic_f, dic_e = {},{} for line in lines: dic_f[line] = lines_f.index(line) dic_e[line] = lines_e.index(line) ...