下面这方法为post数据之后写入文件形式:

import request
pic=request.get("xxxx")#网址url
f = open("xx.jpg", 'wb')
f.write(f.content)
f.close()