【笔记】Python3实现Base64编解码 发表于 2023-11-25 更新于 2025-12-26 阅读次数: 前言Python3实现Base64编解码 Base64编码123import base64result = str(base64.b64encode("未编码的字符串".encode('utf-8')), 'utf-8') Base64解码123import base64result = str(base64.b64decode("已编码的字符串"), 'utf-8') 完成参考文献CSDN——fireflylane