我们能从python得到如下输出吗?你知道吗
text1 -9.98442 -10. -0.01558
text2 -0. -0. 0.
text3 0. -0. -0.
text4 0.24829 0.24829 -0.
text5 -7.40799 -7.40575 0.00224
text6 0. -0. -0.
text7 -0. 0. 0.
text8 -5.88917 -5.83199 0.05718
text9 -0. 0. 0.
text10 -6.83455 -6.74592 0.08862
即左侧的文本和周期对齐的列,带有抑制的小数字(例如,来自一维字符串数组和二维浮点数组)。你知道吗
Numpy可以生成带有np.set_printoptions(precision=5,suppress=True)
和print(array)
的浮点结构,但是我不知道如何将文本放到左边,最好去掉括号。你知道吗
在花了比预期更多的时间之后,我有了一个程序解决方案,我选择了完全抑制零。你知道吗
你知道吗脚本.py地址:
Python3脚本.py你知道吗
相关问题 更多 >
编程相关推荐