摘要: import base64 class B64Handle: def __init__(self): pass def convert_b64(self,img): with open(img,'rb') as f: base64_data=base64.b64encode(f.read()) s= 阅读全文