用c++折腾了好几个小时无果,打算用python实现之。
import requests print ("downloading with requests...") url = ‘http://10.18.83.17/documents/multiLanguageManagement/languagePackage/accessControlIntercom_language_1.0.0.20210804105940.zip‘ r = requests.get(url) with open ("accessControlIntercom_language_1.0.0.20210804105940.zip" , "wb" ) as code: code.write(r.content) //所用网站为点击确定后弹出下载窗口的那个网址
//python idle生成程序文件的方法:首先点击运行IDLE,并按【Ctrl+N】新建文件;然后默认untitled,并保存好;接着写上正规的Python代码;最后按F5键运行即可。
//会下载语言包压缩包于IDE同目录下