香农的信息熵公式:
p_i是某个字符的频率。
有人统计的中文频率表:
喜马拉雅:https://www.ximalaya.com/keji/6310606/
WX:dalaoli_shuxue
电邮:[email protected]