import codecs
import numpy as np
text =np.zeros((3, 3))
str1 = u'新数据:\r\n'
f = codecs.open("text.txt",'w','utf-8')
f.write(str1)
for i in range(0,text.shape[0]):
for j in range(text.shape[1]):
f.write(str(text[i,j])+',')
f.write('\r\n')
f.close()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)