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”)
因为是空的,就没法进行保存时格式的匹配!!!
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”)
因为是空的,就没法进行保存时格式的匹配!!!