python overflowError

计算pow函数出现溢出错误

math.pow((N*N),dvc)
OverflowError: math range error

解决方法:

用numpy.power代替

The Safest Way to Get what you Want is to Try and Deserve What you Want.
原文地址:https://www.cnblogs.com/Shinered/p/9660953.html