bisect — 数组二分查找算法 第一部分 搞清 Python bisect 模块 在 a 中找到 x 合适的 插入点 以维持有序。 ★★★★★ 闭区间 [0, len(a)] bisect.bisect_left(a, x, lo=0, hi=len(a