def get_control_var(dataframe):
    """
    根据dataframe获取程序控制参数list

    输入参数
    ----------
    dataframe : pandas dataframe
        含有控制参数的dataframe.

    返回值
    -------
    控制参数list

    """
    
    control_list = []
    df = dataframe
    mode = df[df['VarName'] == 'Mode']['Value'][0]
        
    # 控制参数list
    control_list.append(mode)
    
    return(control_list)