def save_obj(obj, file_name):
    """
    将对象持久化到本地, 方便直接调试
    :param obj:
    :param file_name:
    :return:
    """
    try:
        import cPickle as pickle
    except ImportError:
        import pickle
    pickle.dump(obj, open(file_name, 'w'))
