Watch 1 Star 0 Fork 0

featherl / compressorPython

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
压缩文件脚本 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

compressor

压缩文件脚本, 基于huffman编码

  • compress.py 实现了压缩文件
  • decompress.py 实现了解压缩文件
  • huffman.py 是huffman树的实现细节
  • constant.py 是程序中用到的一些常量
  • main.py 是主程序

运行实例

  • 先用python生成一个用于压缩的文件, 作为例子 python -c "print('123'*1789)" > 1.txt
  • 压缩文件 python main.py -c 1.txt
  • 解压缩文件 python main.py -d 1.txt.z

Comments ( 0 )

Sign in for post a comment

Python
1
https://gitee.com/featherl/compressor.git
git@gitee.com:featherl/compressor.git
featherl
compressor
compressor
master

Help Search