一句話,好友善! sort(intervals.begin(), intervals.end(), [](Interval a, Interval b){return a.start < b.start;});