下载文件
def down_kms(autho_details_id, headers): url = '❂' res = s.get(headers=headers, url=url) with open('kms_mips.kms', 'wb') as f: f.write(res.content) # 二进制
上传文件 def import_kmsdb(id, headers, kms_path): print(' ' * 3) print('===============开始上传==============') url = '❂' files = {'file': open(path, 'rb')} data = {'id':id} res = s.post(url=url, headers=headers, data=data, files=files)