摘要: >>> import struct >>> fmt = '>> with open('filter.gif', 'rb') as fp: ... img = memoryview(fp.read()) # ➋ ... >>> header = img[:10] # ➌ >>> bytes(header) # ➍ b'GIF89a+\x02\xe6\x00' >>> struct.unpack... 阅读全文
posted @ 2018-01-19 16:05 Erick-LONG 阅读(313) 评论(0) 推荐(0) 编辑