from math import log from numpy import *import operator ............ re = log(pro,2) ............ TypeError: return arrays must be of ArrayType 把“from math import log”放在最后 from numpy import *import operatorfrom math import log ............ re = log(p