按结束时间排完是什么顺序
六场会 [(1,4),(2,3),(3,5),(0,7),(5,6),(6,8)],按结束时间从早到晚排。运行下面这段程序:
iv = [(1, 4), (2, 3), (3, 5), (0, 7), (5, 6), (6, 8)]
print("/".join(str(e) for s, e in sorted(iv, key=lambda t: t[1])))
六场会 [(1,4),(2,3),(3,5),(0,7),(5,6),(6,8)],按结束时间从早到晚排。运行下面这段程序:
iv = [(1, 4), (2, 3), (3, 5), (0, 7), (5, 6), (6, 8)]
print("/".join(str(e) for s, e in sorted(iv, key=lambda t: t[1])))
全部评论