编码和解码

encode('utf-8')  将文件按 utf-8 的格式 编码 成 二进制字符

decode('utf-8')  将二进制字符 解码 成 utf-8 的格式

原文地址:https://www.cnblogs.com/yxlll/p/13596916.html