这会将excel文件保存在运行脚本的文件夹中。
import urllibdls = "http://www.muellerindustries.com/uploads/pdf/UW SPD0114.xls"urllib.request.urlretrieve(dls, "test.xls") # For Python 3# urllib.urlretrieve(dls, "test.xls") # For Python 2

这会将excel文件保存在运行脚本的文件夹中。
import urllibdls = "http://www.muellerindustries.com/uploads/pdf/UW SPD0114.xls"urllib.request.urlretrieve(dls, "test.xls") # For Python 3# urllib.urlretrieve(dls, "test.xls") # For Python 2