https://github.com/lucastheis/rangecoder
https://github.com/lucastheis/rangecoder/blob/master/python/tests/test_range_coder.py
cumFreq0 = [0, 4, 5, 6] //表示累记频率。 sequence = [0, 0, 0, 0, 1, 2] encoder.encode(data0, sequence )