decode 将其它编码的字符串转换成unicode编码,例如:str1.decode("gb2312"),表示将gb2312编码的字符串转换成unicode编码

encode 将unicode编码的字符串转换成其它编码的字符串,例如:str2.encode("gb2312"),表示将unicode编码转换成gb2312编码

相关文章:

  • 2022-12-23
  • 2022-02-14
  • 2022-02-08
  • 2022-01-09
  • 2021-07-21
  • 2021-12-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案