本文共 117 字,大约阅读时间需要 1 分钟。
信息熵公式:
from scipy.stats import entropyprint(entropy([2, 1], base=2))
转载于:https://my.oschina.net/kilosnow/blog/1619242