numpy.lib.format.read_magic#

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

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

参数:
fp类文件对象
返回:
majorint
minorint