Discuss / Python / 测试ok

测试ok

Topic source

艾文SEO

#1 Created at ... [Delete] [Delete and Lock User]

def bmp_info(data): result = struct.unpack('<ccIIIIIIHH',data[:30]) if result[0]==b'B' and result[1]==b'M': return { 'width': result[6], 'height': result[7], 'color': result[9] } return None


  • 1

Reply