(file_path)
return data
加载json文件
    :param json_path:
    :param file_name:
    :return:
加载json文件
    :param json_path:
    :param file_name:
    :return:
加载json文件 : param json_path : : param file_name : : return :
def load_json(file_path):
    '''
    加载json文件
    :param json_path:
    :param file_name:
    :return:
    '''
    if not isinstance(file_path, Path):
        file_path = Path(file_path)
    with open(str(file_path), 'r') as f:
        data = json.load(f)
    return data
def load_json ( file_path ) : if not isinstance ( file_path , Path ) : file_path = Path ( file_path ) with open ( str ( file_path ) , 'r' ) as f : data = json . load ( f ) return data