1 TypeError: must be str, not bytes错误:
2 
3 解答: 
4  写文件处 f=open(filename, 'w')应该写为 open(filename, 'wb')
5  读文件时 f=open(filename,'rb')
UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 0: illegal multibyte sequence解决方法同上

 

相关文章:

  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
  • 2021-06-17
  • 2021-11-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-11-22
  • 2022-02-05
  • 2022-12-23
相关资源
相似解决方案