GzipFile вместе с StringIO : try: from StringIO import StringIO # Python 2.7... ... s = "a long string of characters" g = gzip.open('gzipfilename.gz', 'w', ...
確定! 回上一頁