python中我们通过str.encode和bytes.decode进行 unicode与其他编码之间的转换。
encode,在英语中en词根有 使.......成为 比如 enrich就是使富裕的意思。所以encode就是使编码,就是使普通str成为unicode编码。
decode就是解码,类比与上面的encode。
python中我们通过str.encode和bytes.decode进行 unicode与其他编码之间的转换。
encode,在英语中en词根有 使.......成为 比如 enrich就是使富裕的意思。所以encode就是使编码,就是使普通str成为unicode编码。
decode就是解码,类比与上面的encode。