本文主要是介绍【Python】获取网络上的文件(urlretrieve),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
图片:
代码:
#encoding: utf-8from urllib import requestrequest.urlretrieve("https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_86d58ae1.png","baidu.jpg")
结果:
这篇关于【Python】获取网络上的文件(urlretrieve)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!