摘要: import base64file_path = r'xxx'with open(file_path, 'rb') as f: data = f.read() b64_byte = base64.b64encode(data) # 使用b64对类字节对象进行编码,但是结果还是byte类型 b64_s 阅读全文
posted @ 2023-12-04 11:15 tslam 阅读(5) 评论(0) 推荐(0) 编辑