Discuss / Python / 20180531

20180531

Topic source

Gday小海狮

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

def bmp_info(data): data_30 = data[0:30] data_int = struct.unpack('<ccIIIIIIHH',data_30) return { 'width': data_int[6], 'height': data_int[7], 'color': data_int[9] }


  • 1

Reply