摘要: import base64 def file_to_base64(file_path: str): """ 把文件转为base64编码 :param file_path: 文件路径 :return: base64编码 """ # 读取文件内容 with open(file_path, 'rb') a 阅读全文
posted @ 2023-10-09 15:38 你的小可爱吖 阅读(212) 评论(0) 推荐(0) 编辑