python中输出打印避免换行、格式转化

加上下面这句代码,输出时打印不换行

np.set_printoptions(linewidth=400)

强制输出小数方法:suppress=True

强制类型转换

d2 = d1.astype(int)