在开头加入: import numpy as np np.set_printoptions(threshold=np.inf) 大量元素情况 可以采用set_printoptions(threshold='nan') set_printoptions(threshold='nan') 相关文章: 2022-12-23 2022-12-23 2021-11-16 2022-12-23 2021-11-07 2022-12-23 2022-12-23