computeengine.py 文件源码

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

项目:loman 作者: janusassetallocation 项目源码 文件源码
def read_dill(file_):
        """
        Deserialize a computation from a file or file-like object

        :param file_: If string, writes to a file
        :type file_: File-like object, or string
        """
        if isinstance(file_, six.string_types):
            with open(file_, 'rb') as f:
                return dill.load(f)
        else:
            return dill.load(file_)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号