python implements post request interface test and gzip file compression post request
gzip unzip
Original gzip file operation writing
- Convert dict data into json, and then compress json into gzip
with gzip.GzipFile(abc.json, 'w') as f:f.write(json.dumps(data).encode('utf-8'