Discuss / Python / 交作业

交作业

Topic source

Alvin天枭

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

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


  • 1

Reply