摘要:
#-*- coding: utf-8 -*-f = open('f:/text.bmp','rb')filedata = f.read()filesize = f.tell()f.close()filedata2 = bytearray(filedata)width = filedata2[18]height = filedata2[22]print('width:', width)print('height:', height) # less than 255 , width and height have 4 bytespri 阅读全文