numpy.lib.format.read_magic#

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

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

参数:
fpfilelike object
返回:
majorint
minorint