Python:实现quick select快速选择算法 import random def _partition(data: list, pivot) -> tuple: less, equal, greater = []