方式1使用urllib库import urllib.request import os ,stat url = "https://cn.bing.com/th?id=OHR.Lidong2019_ZH-CN0761273672_1920x1080.jpg" urllib.request.urlretrieve(url,filename="/home/baixiaoxu/desk/