import requests
def dlChrome():
download_addr = "https://dl.google.com/release2/chrome/P75u-n55vk5df0b5dm5gjq_77.0.3865.120/77.0.3865.120_chrome_installer.exe"
f = requests.get(download_addr)
with open("chrome_setup.exe", 'wb') as code:
code.write(f.content)
if __name__ == "__main__":
dlChrome()
之后点击运行脚本就会下载离线安装包,然后双击该离线安装包即可。