numpy.lib.format.magic#

lib.format.magic(major, minor)[原始碼]#

Return the magic string for the given file format version.

參數:
majorint in [0, 255]
minorint in [0, 255]
回傳值:
magicstr
Raises:
ValueError if the version cannot be formatted.