importrequestsdefdownloads_pic(**kwargs):pic_name=kwargs.get('pic_name',None)url='http://www.xxx.com/verify.html'pic_path='D:/yzm/'res=requests.get(url,stream=True)withopen(pic_path+pic_name+'.png','wb')asf:forchunkinres.iter_content(chunk_size=1024):ifchunk:#filteroutkeep-alivenewchunksf.write(chun