python3中的圖片編解碼

編碼(圖片轉字符串)python with open('111.png', mode='rb') as file: img = file.read() image_str = base64.encodebytes(img).decode("utf-8")   解碼(字符串轉圖片)編碼 image_data = base64.b64decode(image_str) file = open(
相關文章
相關標籤/搜索