def read(path: str, encoding: str = 'utf-8') -> str:
    """

    读取文件返回字符串

    :param path: 文件路径
    :param encoding: 编码方式
    :return: 读取所有字符串

    """
    with open(path, 'r', encoding=encoding) as fp:
        result = fp.read()
    return result