python直接把数据写入文件

可以直接把浮点数据写进去,VC直接当作浮点读取就可以了。

doc = open(‘test.dat’,'wb')
for ii in range (512):
    doc.write(layer_output1[ii])
doc.close()

猜你喜欢

转载自blog.csdn.net/masbbx123/article/details/83445189