For example, gziptest.py : import gzip. import json. data = {x: x*2 for x in range(1000000)}. with gzip.open("output.json.gz", "wt") as fp:.
確定! 回上一頁