def pickle_load(file):
    """
    @brief      Use pickle to load python object from file
    @param      file  The file
    @return     python data
    """
    if os.path.isfile(file):
        with open(file, 'rb') as f:
            return pickle.load(f)
    return None

    @brief      Use pickle to load python object from file
    @param      file  The file
    @return     python data
    
wxbot_project_py2.7/wechat/utils.py