np.set_printoptions(threshold=np.inf) Z = np.eye((100)) print(Z) 尝试各种办法,令threshold=np.inf即可,网上其他方法试过不可行。