问题记录:ValueError: fmt has wrong number of % formats: %8.3f %8.3f %8.3f

ValueError: fmt has wrong number of % formats: %8.3f %8.3f %8.3f

说明你输出的东西不匹配:

比如
a = []

np.savetxt(“test.txt”,a,fmt = “%8.3f %8.3f %8.3f”)

因为是空的,就没法进行保存时格式的匹配!!!

发布了40 篇原创文章 · 获赞 16 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Black_Friend/article/details/103399158
8.3