numeric.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:deliver 作者: orchestor 项目源码 文件源码
def load(file):
    """
    Wrapper around cPickle.load which accepts either a file-like object or
    a filename.

    Note that the NumPy binary format is not based on pickle/cPickle anymore.
    For details on the preferred way of loading and saving files, see `load`
    and `save`.

    See Also
    --------
    load, save

    """
    if isinstance(file, type("")):
        file = open(file, "rb")
    return pickle.load(file)


# These are all essentially abbreviations
# These might wind up in a special abbreviations module
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号