保证所有数据能够显示,而不是用省略号表示,np.inf表示一个足够大的数 np.set_printoptions(threshold = np.inf) 若想不以科学计数显示: np.set_printoptions(suppress = True)