Discuss / Python / 练习

练习

Topic source
import struct

with open('a.bmp','rb') as f:
    s = f.read(30)

print(s)

r = struct.unpack('<ccIIIIIIHH',s)
print(r)

  • 1

Reply