Traceback (most recent call last):
  File "C:/Users/Desktop/客户端.py", line 32, in <module>
    print(recv_data.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 13: invalid continuation byte

是因为 编码问题 

修改为

print(recv_data.decode('gbk'))

 

Traceback (most recent call last):  File "C:/Users/乔晓强/Desktop/客户端(1).py", line 32, in <module>    print(recv_data.decode('utf-8'))UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 13: invalid continuation byte

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2021-03-31
  • 2021-11-30
  • 2021-08-29
  • 2021-10-28
  • 2021-10-22
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案