我得到了ZeroDivisionError,但是当我分别打印分子和分母时,它们都是非零的 . 有没有其他方法可以发生此错误?
entropy = map(lambda x:x.get_entropy(), pe.sections) res['SectionsMeanEntropy'] = sum(entropy)/float(len(list(entropy)))