问题

使用numpy时默认n p.ndarray数组以科学记数法显示,很不直观。

解决

import numpy as np
#只要设置这句代码就可以了
np.set_printoptions(suppress=True)

参考

https://www.jianshu.com/p/90144d5fc985

相关文章:

  • 2021-12-02
  • 2022-02-20
  • 2021-12-02
  • 2022-12-23
  • 2021-12-12
  • 2021-07-17
猜你喜欢
  • 2022-12-23
  • 2021-10-05
  • 2021-12-12
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案