misc.py 文件源码

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

项目:VanillaML 作者: vinhkhuc 项目源码 文件源码
def download_file(url, local_path):
    dir_path = path.dirname(local_path)
    if not path.exists(dir_path):
        print("Creating the directory '%s' ..." % dir_path)
        os.makedirs(dir_path)

    urllib.URLopener().retrieve(url, local_path)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号