0
点赞
收藏
分享

微信扫一扫

python下载文件只要一句话


def downViode(url, title):

path = r"G:\py\\%s" % title
if not os.path.exists(u'G:\py'):
os.makedirs(u'G:\py\')
print(title + "----下载开始")
urllib.request.urlretrieve(url, path)

import urllib

举报

相关推荐

0 条评论