File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -337,15 +337,15 @@ def compress(self, input_data):
337
337
print ("Entrada:" )
338
338
entrada = bytearray (input_text .encode ())
339
339
print (entrada )
340
- print ('Tamanho: {}' .format (len (entrada )))
340
+ print ('Tamanho: {}' .format (sys . getsizeof (entrada )))
341
341
print ("\n ---\n " )
342
342
compressed = lz .compress (input_text )
343
343
print ("Dados Comprimidos com LZ77:" )
344
344
print (compressed )
345
- print ('Tamanho: {}' .format (len (compressed )))
345
+ print ('Tamanho: {}' .format (sys . getsizeof (compressed )))
346
346
print ("\n ---\n " )
347
347
decompressed = lz .decompress (compressed )
348
348
print ("Dados descomprimidos com LZ77:" )
349
349
print (decompressed )
350
- print ('Tamanho: {}' .format (len (decompressed )))
350
+ print ('Tamanho: {}' .format (sys . getsizeof (decompressed )))
351
351
print ("\n ---\n " )
You can’t perform that action at this time.
0 commit comments