我想为 Python v2.7.5 从 Matlab(下)翻译这段代码。你能帮助我吗?
fseek (fid,128,'bof');
offset = fread (fid,1,'ushort');
while (offset > 0)
freeString = setstr (fread (fid,offset-2,'char'))';
if (findstr (freeString,'ACQUISITION_DATE') > 0)
date_rec=(freeString (length ('ACQUISITION_DATE '):length (freeString)));
end;
if (findstr (freeString,'ACQUISITION_TIME') > 0)
time_rec=(freeString (length ('ACQUISITION_TIME '):length (freeString)));
end;
if (findstr (freeString,'GENERAL_CONSTANT') > 0)
gen_const_rec=(freeString (length ('GENERAL_CONSTANT '):length (freeString)));
谢谢你,塞缪尔