UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc5 in position 13: invalid continuation byte
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'))