import base64
img_path = r'2576e1674fa40078644ea61061bf12e4.png'
with open(img_path, 'rb') as f:
ls = base64.b64encode(f.read())
print(ls)
微信扫一扫
import base64
img_path = r'2576e1674fa40078644ea61061bf12e4.png'
with open(img_path, 'rb') as f:
ls = base64.b64encode(f.read())
print(ls)
相关推荐