def find_gt(array, x):
    """
    Find leftmost value greater than x.

    :type array: list
    :param array: an iterable object that support inex

    :param x: a comparable value

    Example::

        >>> find_gt([0, 1, 2, 3], 0.5)
        1

    **中文文档**

    寻找最小的大于x的数。
    """
    i = bisect.bisect_right(array, x)
    if i != len(array):
        return array[i]
    raise ValueError