numpy.lib.format.read_magic

lib.format.read_magic(fp)[源代码]

读取魔法字符串以获取文件格式的版本。

参数
fp类文件对象
返回
major利息
minor利息