摘要: 对英文文本的字母进行huffman编码,heapq优先队列构建huffman树 python huffman.py source.txt result.txt 1 import sys 2 import heapq 3 import collections 4 5 class Node(object): 6 def __init__(self,value = Non... 阅读全文
posted @ 2017-11-23 14:31 demianzhang 阅读(1042) 评论(0) 推荐(0) 编辑