kotta_outputs.py 文件源码

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

项目:kotta_client 作者: yadudoc 项目源码 文件源码
def fetch(self, filename=None):
        """ Fetch the remote url to the local file

        Kwargs:
             - filename(string) : Specify path to download files to. Default=None

        """
        if self.url:
            if filename:
                return urlretrieve(self.url, filename)
            else:
                return urlretrieve(self.url, self.file)

        else:
            logger.warning("File %s was not generated on Kotta. Nothing to fetch", self.file)
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号