2020
10-08
10-08
python 实现两个npy档案合并
我就废话不多说了,大家还是直接看代码吧~old_record=numpy.load('exist.npy')temp_record=[]path=os.getcwd()+"\\database\\new"#获取当前路径forroot,dirs,filesinos.walk(path):#遍历统计foreachinfiles:url=path+"\\"+each...temp_record.append(temp)numpy.save('temp.npy',temp_record)temp=numpy.load('temp.npy')new_record=numpy.append(old_record,temp)numpy.save('exist.npy',new_record)...
继续阅读 >