TypeError: cannot use a string pattern on a bytes-like object解决方案

图片:TypeError: cannot use a string pattern on a bytes-like object解决方案
类型匹配问题,一个是string类型,一个是bytes类型,应将string类型的数据转化为’utf-8’,即s = s.decode(‘utf-8’)。

相关文章:

  • 2022-01-07
  • 2021-12-10
  • 2021-12-23
  • 2021-06-17
猜你喜欢
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案