报错:a bytes-like object is required, not 'str'

解决方法转载自https://blog.csdn.net/junlee87/article/details/78780831

 

如果使用python3的pickle.dump写入文件内容,mode使用wb,

读取时使用rb,就不会报错。

相关文章:

  • 2021-09-15
  • 2022-01-25
  • 2021-08-20
  • 2021-09-16
  • 2022-12-23
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-05-31
  • 2022-12-23
相关资源
相似解决方案