2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
|
|
@ -3,8 +3,8 @@ def compress(uncompressed):
|
|||
|
||||
# Build the dictionary.
|
||||
dict_size = 256
|
||||
dictionary = dict((chr(i), chr(i)) for i in xrange(dict_size))
|
||||
# in Python 3: dictionary = {chr(i): chr(i) for i in range(dict_size)}
|
||||
dictionary = dict((chr(i), i) for i in xrange(dict_size))
|
||||
# in Python 3: dictionary = {chr(i): i for i in range(dict_size)}
|
||||
|
||||
w = ""
|
||||
result = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue