【numpy】数据完全显示/不用科学计数法显示

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

你可能感兴趣的:(Python)