Обновить u9/huffman_tree.py
This commit is contained in:
parent
dd84c3159a
commit
9cc02e7f31
@ -56,7 +56,7 @@ class HuffmanTree:
|
||||
result ={}
|
||||
if self.root == "":
|
||||
return result
|
||||
def find(node, code):
|
||||
def find(code, node):
|
||||
if node.left is None and node.right in None:
|
||||
if code == "":
|
||||
code = "0"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user