I’ve tried to read a npz file and it turn out the output like below
b’PK\x04\x03\x14\x00\x00\x00\x07\x00\x05\x00!\x00M\xd05\xda\xa1\xb7\
x00\x00\x00\x07\x01\x00\x00\x06\x00\x14\x00PK.npy\x01\x00\x10\x00.
I know it is unreadable for human but I really want to know what is the meaning of every character like b, PK,\ and the number on it
what is the meaning of every character on those output? like the slash or number on it? is it just random or? please help me. Thank you
Notation like the following means it is a Python
bytestype:The
PandKare just printable characters, i.e. the regular letters P and K. If youman asciiyou will see that P and K are 80 and 75 in decimal.The rest are hex representations of bytes, so
\x04just means a byte with the value 4.