from math import log
def InfoEntropy(str_1):
Info_map = {
}
for i in str_1:
# 不统计的字符↓
if i != ' ' and i != '"' and i
Python 实现字符统计其信息熵(英文字符)
最新推荐文章于 2024-07-20 17:12:48 发布
from math import log
def InfoEntropy(str_1):
Info_map = {
}
for i in str_1:
# 不统计的字符↓
if i != ' ' and i != '"' and i