基本的に、多数の double を含むバイナリ ファイルを読みたいと考えています。以下を達成する方法がわからない:
N=10000000
fin=open("sth.bin","rb")
data = struct.unpack('dddddd......',fin.read(8*N)) #of course not working, but this is what I want
fin.close()
基本的に、多数の double を含むバイナリ ファイルを読みたいと考えています。以下を達成する方法がわからない:
N=10000000
fin=open("sth.bin","rb")
data = struct.unpack('dddddd......',fin.read(8*N)) #of course not working, but this is what I want
fin.close()