Python版本,仅供参考 class Interval: def __init__(self, a=0, b=0): self.start = a self.end = b class Solution: def merge(self , intervals ): intervals = sorted(intervals,key=lambda x:x.start) size = len(intervals) i = 0; while i < size-1: ...