scipy.io.FortranFile.write_record

FortranFile.write_record(*items)[源代码]

将记录(包括大小)写入文件。

参数
*itemsarray_like

要写入的数据数组。

注意事项

将数据项写入文件::

write_record(a.T, b.T, c.T, ...)

write(1) a, b, c, ...

请注意,多维数组中的数据是以行为主的顺序写入的-要使Fortran程序正确读取它们,您需要在写入数组时自己转置这些数组。