python根据url下载文件

#!/usr/bin/python3

import urllib.request
url="http://shouji.360tpcdn.com/180822/aa171e9134dfa23c1d22a182ecf6d50c/com.ss.android.article.video_268.apk"
downPath='..\\apks\s.apk'#include the source name,not only path,"\\"the first is the escape character
urllib.request.urlretrieve(url,downPath)

未经允许不得转载!python根据url下载文件

本文地址:https://ai.52learn.online/923

如遇到无法显示的问题,请先尝试刷新页面

客服联系邮箱:ai52learn@foxmail.com