initial creation

This commit is contained in:
2025-05-20 11:57:43 -04:00
commit c98b612926
8447 changed files with 1862526 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/env python
from struct import Struct
# short int short short int (native, unsigned)
s = Struct('=HIHHI') # <1>
with open('../DATA/chimp.bmp', 'rb') as chimp_in:
chimp_bmp = chimp_in.read(s.size) # <2>
(signature, size, reserved1, reserved2, offset) = s.unpack(chimp_bmp) # <3>
print("signature:", signature) # <4>
print('size:', size)
print('reserved1:', reserved1)
print('reserved2:', reserved2)
print('offset:', offset)