np.set_printoptions(threshold=np.nan)引起的错误,语句改成np.set_printoptions(threshold=sys.maxsize)解决了这个错误,但是这个方法我们需要导入sys
改成这个方法更简单np.set_printoptions(threshold=np.inf)

np.set_printoptions(threshold=np.nan)引起的错误,语句改成np.set_printoptions(threshold=sys.maxsize)解决了这个错误,但是这个方法我们需要导入sys
改成这个方法更简单np.set_printoptions(threshold=np.inf)