Python读取数据dat文件格式的数据

import numpy as np 
data = np.fromfile("Frame8.dat", dtype=np.uint16, count=2048*1000, sep='', offset=0)
print(data.shape) #一维数组
data = data.reshape((2048, 1000)) #
data

更多推荐

Python读取dat文件格式的数据