Discuss / Python / 作业

作业

Topic source

zL丶_44830

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

def bmp_info(data): s=struct.unpack('<ccIIIIIIHH',data[:30]) if (s[0]+s[1]) in [b'BM',b'BA']: return { 'width': s[6], 'height': s[7], 'color': s[9] } else: return False


  • 1

Reply