建议使用:
np.isfinite(x).all()
代码:
import math x=float('nan') math.isnan(x)
墨之科技,版权所有 © Copyright 2017-2027
湘ICP备14012786号 邮箱:ai@inksci.com